摘要:
package acl import ( "github.com/armon/go-radix" ) var ( // allowAll is a singleton policy which allows all // non-management actions allowAll ACL // 阅读全文
摘要:
package blog4goimport ( "fmt" "os" "sync" "time")const ( // unit of sizes _ = iota // ignore first value by assigning to blank identifier // KB unit of kilobyte KB int64 = 1 0 { // format the ex... 阅读全文
摘要:
package blog4goimport ( "encoding/xml" "errors" "io/ioutil" "os")const ( // TypeTimeBaseRotate is time base logrotate tag TypeTimeBaseRotate = "time" // TypeSizeBaseRotate is size base logrotate tag T... 阅读全文
摘要:
package blog4goimport ( "fmt" "path" "strings")// NewFileWriter initialize a file writer// baseDir must be base directory of log files// rotate determine if it will logrotatefunc NewFileWriter(baseDir... 阅读全文
摘要:
package blog4go// Hook Interface determine types of functions should be declared and// implemented when user offers user defined function call before every// logging action end.// users may use this h... 阅读全文