Comments (9)
from siris.
@Dexus Is there any function to it?
from siris.
from siris.
I never used it, but I think it was something like this:
type FormObject struct {
Username string `form:"username"`
Password string `form:"password"`
}
func yourRouteFunction(c context.Context) {
form := &FormObject{}
c.ReadForm(form)
}
from siris.
Try this: google/go-querystring#7 (comment)
It's not yet for GET Params (Querystring) implemented if looked just into it. But we can do it.
from siris.
Or even better maybe: https://github.com/pasztorpisti/qs
from siris.
When you use ctx.Request.URL.Query() and qs or schema you don't need to build this crap wrapper...
from siris.
Ok, qs is the solution.
from siris.
Internal notice:
Add a new context function for get params to parse into a struct. Also add a shortcut function to get fields only for querystrings, because ctx.request.Form
(ctx.FormValue('namestring')
or ctx.FormValues()
) overwrite same name fields with post/put params.
from siris.
Related Issues (20)
- Correct framwork in repo title to framework HOT 1
- Use Cache Markdown for partial data HOT 3
- Will siris be merged again with iris? HOT 12
- Race condition
- Add issue template HOT 3
- Add code coverage reported via https://codecov.io HOT 3
- Need AppVeyor Support for testing on windows clients HOT 2
- Possible License Violation HOT 4
- Why I get the notification from this repo HOT 5
- Allow support for a LimitListener HOT 5
- Session Store Backend: Badger HOT 1
- devel: quicServer does not start...
- Full server hang after setting Flash Message and redirecting HOT 4
- Please provide a boilerplate with User Registration/Login/Logout. We need it badly. HOT 1
- may u add these functions? HOT 3
- <title suppressed due to foul language>
- [Feature Request] XAMPP-like solution: React, go-SIRIS, MongoDB, Server-side rendering, on-demand loading HOT 1
- how to integrate Siris with ReactJs?
- Websockets over Redis HOT 1
- Build failure due to recent changes to satori/go.uuid project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siris.