We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcef86d commit 2ccfbf6Copy full SHA for 2ccfbf6
funcr/funcr.go
@@ -201,15 +201,16 @@ func NewFormatterJSON(opts Options) Formatter {
201
return newFormatter(opts, outputJSON)
202
}
203
204
-const defaultTimestampFmt = "2006-01-02 15:04:05.000000"
205
-const defaultMaxDepth = 16
+// Defaults for Options.
+const defaultTimestampFormat = "2006-01-02 15:04:05.000000"
206
+const defaultMaxLogDepth = 16
207
208
func newFormatter(opts Options, outfmt outputFormat) Formatter {
209
if opts.TimestampFormat == "" {
- opts.TimestampFormat = defaultTimestampFmt
210
+ opts.TimestampFormat = defaultTimestampFormat
211
212
if opts.MaxLogDepth == 0 {
- opts.MaxLogDepth = defaultMaxDepth
213
+ opts.MaxLogDepth = defaultMaxLogDepth
214
215
f := Formatter{
216
outputFormat: outfmt,
0 commit comments