Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 06:24
· 31 commits to main since this release
f2fe739

Added

  • posix.OptionalFd: an optional POSIX descriptor in four bytes. none stores -1, and get is explicitly inlined. The value carries no ownership.
  • Compact time values provide fromNanosecondsComptime, fromMicrosecondsComptime, fromMillisecondsComptime, and fromSecondsComptime. These return plain values and reject out-of-range values at compile time. Optional values expose the same constructors without a sentinel or try step.
  • time.Duration and time.Timestamp: nonnegative nanosecond values in eight bytes, with checked arithmetic and lossless conversion to the wider std values.
  • time.OptionalDuration and time.OptionalTimestamp: eight-byte optional values. none uses the highest u64 value without a separate tag.