query

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryUrl

type QueryUrl struct {
	Url url.Values `json:"url"`
}

QueryUrl is the structure

func New

func New(url url.Values) *QueryUrl

New will new a QueryUrl

func (*QueryUrl) Int

func (query *QueryUrl) Int(key string, defaultValue int) (int, error)

Int is a function for int

func (*QueryUrl) Int64

func (query *QueryUrl) Int64(key string, defaultValue int64) (int64, error)

Int64 is a function for int64

func (*QueryUrl) Str

func (query *QueryUrl) Str(key string) (string, bool)

Str is a function

func (*QueryUrl) TimeDuration added in v0.2.2

func (query *QueryUrl) TimeDuration(key string, defaultValue time.Duration) (time.Duration, error)

Int is a function for int

Jump to

Keyboard shortcuts

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