Skip to content

Commit a0180d6

Browse files
committed
docs how to combine SetErrorTracer, etc. with Flags
1 parent bbf85b6 commit a0180d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ And the following flags are supported (="default-value"):
101101
-err2-trace="nil"
102102
A name of the stream currently supported stderr, stdout or nil
103103
104+
Note, that you have called err2.SetErrorTracer and others, before you call
105+
flag.Parse. This allows you set the defaults according your app's need and allow
106+
end-user change them during the runtime.
107+
104108
# Error handling
105109
106110
Package err2 relies on declarative control structures to achieve error and panic

0 commit comments

Comments
 (0)