Documentation ¶
Index ¶
Constants ¶
View Source
const ( ISO8601TIME = "2006-01-02T15:04:05-0700" ISO8601MICRO = "2006-01-02T15:04:05.999999-0700" DefaultLimit = 20 DefaultMaxLimit = 100 )
Variables ¶
View Source
var ( ErrorGEOSyntax = fmt.Errorf("geolocation: Syntax Error") ErrorGEOBadLocation = fmt.Errorf("geolocation: Bad Location") )
View Source
var DefaultEnvPool = &EnvPool{ p: &sync.Pool{ New: func() interface{} { return &Envelope{} }, }, }
Functions ¶
Types ¶
type Envelope ¶
type GeoLocation ¶
type GeoLocation struct { Latitude float64 Longitude float64 // contains filtered or unexported fields }
func (*GeoLocation) Parse ¶
func (g *GeoLocation) Parse(geo string) error
Parse 解析geo:Latitude,Longtidude
type Pagination ¶
func ParsePagination ¶
func ParsePagination(c *gin.Context) (Pagination, error)
type Parameters ¶
func ParseParameters ¶
func ParseParameters(c *gin.Context) (Parameters, error)
Click to show internal directories.
Click to hide internal directories.