This repository has been archived by the owner on Aug 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
may u add these functions? #70
Comments
Can you create some examples for each function so we can see what it should expect as input?
Von meinem iPhone gesendet
… Am 05.09.2017 um 15:52 schrieb go-xworkflow ***@***.***>:
may u add these functions?
context.URLParamBool(name string) (bool,error)
context.URLParamTrim(name string) string
context.URLParamEscape(name string) string
context.URLParamFloat64(name string) (float64, error)
context.PostValueTrim(name string) string
context.PostValueEscape(name string) string
context.PostBool(name string) (bool,error)
context.PostInt(name string) (int, error)
context.PostInt64(name string) (int64, error)
context.PostFloat64(name string) (float64, error)
context.PostStrings(name string) ([]string, error)
context.Params().GetTrim(name string) string
context.Params().GetEscape(name string) string
context.Params().GetBool(name string) (bool,error)
context.Params().GetFloat64(name string) (float64, error)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
i think like this // QueryTrim querys and trims spaces form parameter.
Context.QueryTrim(name string) string
// QueryStrings returns a list of results by given query name.
Context.QueryStrings(name string) []string
// QueryEscape returns escapred query result.
Context.QueryEscape(name string) string
// QueryFloat64 returns query result in float64 type.
Context.QueryFloat64(name string) float64
// QueryBool returns query result in bool type.
Context.QueryBool(name string) bool |
Yeah that should be possible, give me some days. I'm a bit busy at the moment.
Von meinem iPhone gesendet
… Am 05.09.2017 um 17:08 schrieb go-xworkflow ***@***.***>:
i think like this
https://github.com/go-macaron/macaron/blob/master/context.go
// QueryTrim querys and trims spaces form parameter.
Context.QueryTrim(name string) string
// QueryStrings returns a list of results by given query name.
Context.QueryStrings(name string) []string
// QueryEscape returns escapred query result.
Context.QueryEscape(name string) string
// QueryFloat64 returns query result in float64 type.
Context.QueryFloat64(name string) float64
// QueryBool returns query result in bool type.
Context.QueryBool(name string) bool
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
may u add these functions?
context.URLParamBool(name string) (bool,error)
context.URLParamTrim(name string) string
context.URLParamEscape(name string) string
context.URLParamFloat64(name string) (float64, error)
context.PostValueTrim(name string) string
context.PostValueEscape(name string) string
context.PostBool(name string) (bool,error)
context.PostInt(name string) (int, error)
context.PostInt64(name string) (int64, error)
context.PostFloat64(name string) (float64, error)
context.PostStrings(name string) ([]string, error)
context.Params().GetTrim(name string) string
context.Params().GetEscape(name string) string
context.Params().GetBool(name string) (bool,error)
context.Params().GetFloat64(name string) (float64, error)
The text was updated successfully, but these errors were encountered: