libs

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatFile

func CatFile(filepath string, limit int64, content *string) (isPath bool, err error)

func Date added in v1.4.0

func Date(t int64) string

func DeepCopy

func DeepCopy(dst, src interface{}) error

func DeepCopy2

func DeepCopy2(value interface{}) interface{}

DeepCopy2 for map slice

func DeepFind

func DeepFind(in map[string]interface{}, keyStr string) interface{}

DeepFind recursive query in the map

func DialHTTP

func DialHTTP(network, address, path string) (*rpc.Client, error)

func Int2floatstr added in v1.4.0

func Int2floatstr(f string, n int64, l int) string

func ParseInt added in v1.4.0

func ParseInt(i string) int

func PrintStruct

func PrintStruct(v interface{}) interface{}

func RandNum

func RandNum() int64

func ReplaceEmpty

func ReplaceEmpty(str, replaceStr string) string

func SendMail

func SendMail(title, content, host, from, pass, port, mailTo string)

func SortedMap

func SortedMap(i map[string]interface{})

func Struct2Map added in v1.4.0

func Struct2Map(i interface{}, o *map[string]interface{}) error

func SystemInfo

func SystemInfo(startTime time.Time) map[string]interface{}

func TryOpen

func TryOpen(path string, flag int) (*os.File, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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