lib

package
Version: v0.0.0-...-ff36db3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileHash

func FileHash(body []byte) string

func Hash

func Hash(body string) []byte

Hash .

func InArray

func InArray(item string, list []string) bool

func IsExists

func IsExists(ini string) bool

IsExists 判断ini是否存在.

func ParseInt

func ParseInt(str string) int

ParseInt .

func Response

func Response(w http.ResponseWriter, status bool, msg interface{}, body ...[]byte)

Response .

func Time

func Time() string

Time 获取当前时间.

Types

type Resp

type Resp struct {
	Status bool
	Msg    interface{}
	Body   []byte
}

func ParseMsg

func ParseMsg(b []byte) Resp

ParseMsg .

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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