File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ var defaultLayouts = []string{
8686}
8787
8888// layoutCache caches format to layout conversions to avoid repeated parsing
89- var layoutCache = sync.Map {}
89+ var layoutCache sync.Map
9090
9191// converts format to layout.
9292func format2layout (format string ) string {
@@ -125,7 +125,7 @@ func format2layout(format string) string {
125125}
126126
127127// timezoneCache caches parsed timezone locations to avoid repeated parsing
128- var timezoneCache = sync.Map {}
128+ var timezoneCache sync.Map
129129
130130// parses a timezone string as a time.Location instance.
131131func parseTimezone (timezone string ) (loc * Location , err error ) {
@@ -149,7 +149,7 @@ func parseTimezone(timezone string) (loc *Location, err error) {
149149}
150150
151151// durationCache caches parsed durations to avoid repeated parsing
152- var durationCache = sync.Map {}
152+ var durationCache sync.Map
153153
154154// parses a duration string as a time.Duration instance.
155155func parseDuration (duration string ) (dur Duration , err error ) {
You can’t perform that action at this time.
0 commit comments