Skip to content

Commit 30c0707

Browse files
authored
Merge pull request #27 from cia-rana/patch-1
reduce memory allocation for struct fields
2 parents 8e5c2fd + 72d5d3d commit 30c0707

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

time.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
type empty[T TimeZone] struct{}
1111

1212
type Time[T TimeZone] struct {
13-
tm time.Time
1413
_ empty[T]
14+
tm time.Time
1515
}
1616

1717
// StdTime returns the time.Time.

0 commit comments

Comments
 (0)