utils

package
v0.0.0-...-740bfc4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuffPool

func GetBuffPool() *byteBuffPool

func GetPageValue

func GetPageValue(code int, data interface{}, maxCount int64, page int64, maxPage int64) *pageValue

func GetTimeMillis

func GetTimeMillis() int64

func GetTimeMillsByZone

func GetTimeMillsByZone(local *time.Location) int64

func GetValue

func GetValue(code int, data interface{}) *value

Types

type BaseError

type BaseError struct {
	// contains filtered or unexported fields
}

func NewError

func NewError(code int, message string) *BaseError

func (*BaseError) Code

func (i *BaseError) Code() int

func (*BaseError) Error

func (i *BaseError) Error() string

type ErrorInterfaces

type ErrorInterfaces interface {
	Code() int
}

Jump to

Keyboard shortcuts

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