common

package
v0.0.0-...-4ee5a33 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Trace   *log.Logger
	Debug   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
	Fatal   *log.Logger
)
View Source
var Client *redis.ClusterClient

Functions

func Bytes

func Bytes(v interface{}) []byte

序列化

func LoadConfig

func LoadConfig(path string, conf *interface{})

func LogInit

func LogInit(logfile string, level int) (ok bool)

func Test0

func Test0()

func Test1

func Test1()

func Test2

func Test2()

func Test3

func Test3()

Types

type Mutex

type Mutex struct {
	Lock sync.Mutex
}

type RWMutex

type RWMutex struct {
	Lock sync.RWMutex
}

Jump to

Keyboard shortcuts

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