params

package
v0.0.0-...-d80a93d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2016 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Request *http.Request
}

Params is request params

func NewParams

func NewParams(request *http.Request) Params

NewParams returns new request params

func (*Params) Bool

func (params *Params) Bool(key string, required bool, defaultValue ...bool) (bool, error)

Bool returns bool-value from query string

func (*Params) String

func (params *Params) String(key string, required bool, defaultValue ...string) (string, error)

String returns param value if exists in query string returns error if one of param not exists

func (*Params) Uint64

func (params *Params) Uint64(key string, required bool, defaultValue ...uint64) (uint64, error)

Uint returns uint64-value from query string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL