Skip to content
This repository has been archived by the owner on Aug 17, 2018. It is now read-only.

may u add these functions? #70

Open
go-xworkflow opened this issue Sep 5, 2017 · 3 comments
Open

may u add these functions? #70

go-xworkflow opened this issue Sep 5, 2017 · 3 comments

Comments

@go-xworkflow
Copy link

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)

@Dexus
Copy link
Contributor

Dexus commented Sep 5, 2017 via email

@go-xworkflow
Copy link
Author

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

@Dexus
Copy link
Contributor

Dexus commented Sep 5, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants