Documentation ¶
Overview ¶
Package nptime provides a non-pointer version of the time.Time struct that does not have the location pointer information that time.Time has, which is more efficient from a memory management perspective, in cases where you have a lot of time values being kept: https://segment.com/blog/allocation-efficiency-in-high-performance-go-services/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Time ¶
type Time struct { // [time.Time.Unix] seconds since 1970 Sec int64 // [time.Time.Nanosecond]; nanosecond offset within second, *not* UnixNano NSec uint32 }
Time represents the value of time.Time without using any pointers for the location information, so it is more memory efficient when lots of time values are being stored.
Click to show internal directories.
Click to hide internal directories.