From 3fa854b08a507651aea66fa829ec340d6d8edeae Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Wed, 6 Oct 2021 15:46:15 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=89=8B=E5=8A=A8=E5=AE=9E=E7=8E=B0=20?= =?UTF-8?q?simple=20log=20=E6=97=A5=E5=BF=97=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simplelog/simplelog.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simplelog/simplelog.go b/simplelog/simplelog.go index aaa6606..a8a88c3 100644 --- a/simplelog/simplelog.go +++ b/simplelog/simplelog.go @@ -19,7 +19,7 @@ func (l LogLevel) String() string { return l.s } -type LevelFlag uint8 +type LevelFlag int const ( FlagInfo LevelFlag = 0x1 @@ -127,6 +127,7 @@ var defaultOption = &Option{ LevelFlag: FlagInfo | FlagWarn | FlagError | FlagDebug, } +// NewOption 构造 Option 参数 func NewOption(opts ...OptionFunc) (opt *Option) { opt = defaultOption for _, o := range opts {