goutils

package
v1.0.601 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MulanPSL-2.0 Imports: 14 Imported by: 71

Documentation

Index

Constants

View Source
const FILE_GOMOD = "go.mod"
View Source
const (
	RotateSize = 1024 * 1024 * 20
)

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Error

func Error(v ...interface{})

func Info

func Info(v ...interface{})

func InjectGoLog

func InjectGoLog(s *GoLog)

func InjectGoLogcli

func InjectGoLogcli(s *GoLogcli)

func InjectGoLogerr

func InjectGoLogerr(s *GoLogerr)

func InjectGoLogstat

func InjectGoLogstat(s *GoLogstat)

func LoadGoLog

func LoadGoLog() baseiface.ISingleton

func LoadGoLogcli

func LoadGoLogcli() baseiface.ISingleton

func LoadGoLogerr

func LoadGoLogerr() baseiface.ISingleton

func LoadGoLogstat

func LoadGoLogstat() baseiface.ISingleton

func LoadGofileUtil added in v1.0.505

func LoadGofileUtil() baseiface.ISingleton

func Stat

func Stat(v ...interface{})

func Warning added in v1.0.502

func Warning(v ...interface{})

Types

type GoLog

type GoLog struct {
	basedto.BaseEntitySingle

	Name string

	*glog.Logger
	// contains filtered or unexported fields
}

https://blog.csdn.net/weixin_51261234/article/details/124504638

func FindBeanGoLog

func FindBeanGoLog() *GoLog

func NewGoLog

func NewGoLog() *GoLog

func (*GoLog) SetLevel added in v1.0.501

func (l *GoLog) SetLevel(level int) *GoLog

func (*GoLog) SetLevelErr added in v1.0.501

func (l *GoLog) SetLevelErr() *GoLog

type GoLogcli

type GoLogcli struct {
	basedto.BaseEntitySingle
	GoLog
}

func FindBeanGoLogcli

func FindBeanGoLogcli() *GoLogcli

func NewGoLogcli

func NewGoLogcli() *GoLogcli

type GoLogerr

type GoLogerr struct {
	basedto.BaseEntitySingle
	*GoLog
}

func FindBeanGoLogerr

func FindBeanGoLogerr() *GoLogerr

func NewGoLogServerErr

func NewGoLogServerErr() *GoLogerr

type GoLogstat

type GoLogstat struct {
	basedto.BaseEntitySingle
	*GoLog
}

func FindBeanGoLogstat

func FindBeanGoLogstat() *GoLogstat

func NewGoLogStat

func NewGoLogStat() *GoLogstat

type GofileUtil added in v1.0.505

type GofileUtil struct {
	basedto.BaseEntitySingle
}

func FindBeanGofileUtil added in v1.0.505

func FindBeanGofileUtil() *GofileUtil

func NewGofileUtil added in v1.0.505

func NewGofileUtil() *GofileUtil

func (*GofileUtil) CheckConfigFileExist added in v1.0.505

func (this *GofileUtil) CheckConfigFileExist(root, f string) bool

func (*GofileUtil) CheckFileExist added in v1.0.505

func (this *GofileUtil) CheckFileExist(filename string) bool

func (*GofileUtil) Dir added in v1.0.505

func (this *GofileUtil) Dir(pathfile string) string

func (*GofileUtil) FindRootDir added in v1.0.505

func (this *GofileUtil) FindRootDir() string

func (*GofileUtil) FindRootDirGoMod added in v1.0.505

func (this *GofileUtil) FindRootDirGoMod() string

func (*GofileUtil) FindRootPkg added in v1.0.505

func (this *GofileUtil) FindRootPkg() string

func (*GofileUtil) GetCurPath added in v1.0.505

func (this *GofileUtil) GetCurPath() string

func (*GofileUtil) SetRootPkgEnv added in v1.0.505

func (this *GofileUtil) SetRootPkgEnv(p string)

func (*GofileUtil) TryFileExist added in v1.0.505

func (this *GofileUtil) TryFileExist(filename string) bool

func (*GofileUtil) UnZip added in v1.0.505

func (this *GofileUtil) UnZip(zipFile string, destPath string) error

func (*GofileUtil) Zip added in v1.0.505

func (this *GofileUtil) Zip(srcPath string, destFile string) error

Jump to

Keyboard shortcuts

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