Documentation ¶
Overview ¶
Package utils @Description:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathExists ¶
PathExists *
- @Description: 判断文件或文件夹是否存在 如果返回的错误为nil,说明文件或文件夹存在 如果返回的错误类型使用os.IsNotExist()判断为true,说明文件或文件夹不存在 如果返回的错误为其它类型,则不确定是否在存在
- @param path
- @return bool
- @return error
- example
func WriteToFile ¶
Types ¶
type LogFormat ¶
type LogHook ¶
type LogHook struct { EnableLogChan bool LogChan chan string // contains filtered or unexported fields }
LogHook @Description:
func NewLogHook ¶
NewLogHook *
- @Description:
- @param formatter
- @param levels
- @param writers
- @return *LogHook
- example
Click to show internal directories.
Click to hide internal directories.