Skip to content

Commit

Permalink
Drop support for Go < 1.12
Browse files Browse the repository at this point in the history
Go 1.12 is old enough that we don't need to try to support it.
The files global_go112 and global_prego112 existed to
support different stack depths for the standard library logger,
which changed going from Go 1.11 to 1.12.

This is no longer something we need to support because
per our CI configuration, we only support Go 1.15+.

Ref #682
  • Loading branch information
abhinav committed Nov 9, 2021
1 parent 625d01b commit fe04ac4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 54 deletions.
1 change: 1 addition & 0 deletions global.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
)

const (
_stdLogDefaultDepth = 1
_loggerWriterDepth = 2
_programmerErrorTemplate = "You've found a bug in zap! Please file a bug at " +
"https://github.com/uber-go/zap/issues/new and reference this error: %v"
Expand Down
27 changes: 0 additions & 27 deletions global_go112.go

This file was deleted.

27 changes: 0 additions & 27 deletions global_prego112.go

This file was deleted.

0 comments on commit fe04ac4

Please sign in to comment.