Skip to content

Commit 2ccfbf6

Browse files
committed
Fix some internal names
1 parent dcef86d commit 2ccfbf6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

funcr/funcr.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,16 @@ func NewFormatterJSON(opts Options) Formatter {
201201
return newFormatter(opts, outputJSON)
202202
}
203203

204-
const defaultTimestampFmt = "2006-01-02 15:04:05.000000"
205-
const defaultMaxDepth = 16
204+
// Defaults for Options.
205+
const defaultTimestampFormat = "2006-01-02 15:04:05.000000"
206+
const defaultMaxLogDepth = 16
206207

207208
func newFormatter(opts Options, outfmt outputFormat) Formatter {
208209
if opts.TimestampFormat == "" {
209-
opts.TimestampFormat = defaultTimestampFmt
210+
opts.TimestampFormat = defaultTimestampFormat
210211
}
211212
if opts.MaxLogDepth == 0 {
212-
opts.MaxLogDepth = defaultMaxDepth
213+
opts.MaxLogDepth = defaultMaxLogDepth
213214
}
214215
f := Formatter{
215216
outputFormat: outfmt,

0 commit comments

Comments
 (0)