Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
URLGenType = reflect.TypeOf((*URLGen)(nil)).Elem()
)
Functions ¶
Types ¶
type BaseURL ¶
type BaseURL func(...interface{}) string
BaseURL holds an base url, invoking this func will return the base url with query string, ex: NewBaseURL("/search")("q", "my search input","page",5) will result in /search?q=my search input&page=5
func GenQS ¶
GenQS generates a url + query string ex: GenQS(nil,"http://google.com/")("q","cats") => Generates http://google.com/?q=cats
or use with GenQS("app.ProductController.ActionHandler","urlParam")("page",5)
func NewBaseURL ¶
NewBaseURL creates a new BaseURL, see type BaseURL func(...interface{}) string
Click to show internal directories.
Click to hide internal directories.