x

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Rand = rand.New(rand.NewSource(time.Now().UnixNano()))

Functions

func BytesToString

func BytesToString(b []byte) string

func Do

func Do(key string, fn func() (interface{}, error)) (interface{}, error)

func GetLastPwd

func GetLastPwd() string

GetLastPwd get last file directory

func GetProjectName

func GetProjectName() string

GetProjectName get current project name

func GetPwd

func GetPwd() string

GetPwd get current file directory

func MustMarshal

func MustMarshal(v interface{}) []byte

func MustMarshalString

func MustMarshalString(v interface{}) string

func MustUnmarshal2Map

func MustUnmarshal2Map(b []byte, v map[string]string)

func NewUUID

func NewUUID() string

func RandInt

func RandInt(min, max int) int

func StringToBytes

func StringToBytes(s string) (b []byte)

Types

type Group

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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