Documentation ¶
Overview ¶
Package get handles parasing and fetching get parameters from query string
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetParameter ¶
type GetParameter struct { Default string Allowed []string Name string // contains filtered or unexported fields }
func New ¶
func New(name string, defaultV string) *GetParameter
func WithChoices ¶
func WithChoices(name string, allowed []string) (param *GetParameter)
WithChoices limits the allowed values of the get parameter Note: sets the first item from allowed as the default value
Click to show internal directories.
Click to hide internal directories.