misc

package
v5.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIME_FMT_STR_YEAR   = "2006"
	TIME_FMT_STR_MONTH  = "01"
	TIME_FMT_STR_DAY    = "02"
	TIME_FMT_STR_HOUR   = "15"
	TIME_FMT_STR_MINUTE = "04"
	TIME_FMT_STR_SECOND = "05"
)

Variables

This section is empty.

Functions

func AppendBytes

func AppendBytes(b []byte, elems ...[]byte) []byte

func DirExist

func DirExist(path string) bool

func FileExist

func FileExist(path string) bool

func IntSliceUnique

func IntSliceUnique(s []int) []int

func ListFilesInDir

func ListFilesInDir(rootDir string) ([]string, error)

func PrintCallerFuncNameForTest

func PrintCallerFuncNameForTest()

func RandByTime

func RandByTime(t *time.Time) int64

func StringSliceUnique

func StringSliceUnique(s []string) []string

func TimeGeneralLayout

func TimeGeneralLayout() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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