util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version      = "1.0.0"
	AppName      = "LLOG"
	AppUsage     = "Agent for llog."
	LogDir       = ".llogs"
	FilePattern  = "*.log"
	SnapshotDir  = "Snapshot"
	SnapshotFile = "llog.snapshot"
)

Functions

func ErrHandler

func ErrHandler(err error)

func GetAbsPath

func GetAbsPath(base, p string) string

func GetCwd

func GetCwd() string

func GetTempDir

func GetTempDir() string

func IsDir

func IsDir(path string) bool

func IsInclude

func IsInclude(text []byte, regs []string) bool

func PathExist

func PathExist(p string) (bool, error)

func Recover added in v1.0.0

func Recover()

func UUID

func UUID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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