Skip to content

Releases: lukasngl/opt

v0.1.0

29 Dec 08:56

Choose a tag to compare

Breaking Changes

  • Unwrap() renamed to Get()
  • FromNillable/ToNillable renamed to FromPtr/ToPtr
  • Minimum Go version is now 1.22

New Features

  • Utility methods: Map, FlatMap, Filter, Or, OrElseGet, IfPresent
  • Iterator support: All() returns iter.Seq[V] (Go 1.23+)
  • Added Int and Uint type aliases

Fixes

  • Fixed type aliases: Int8/Int16/Int32/Int64 now use signed types
  • Fixed Complex64/Complex128 swap
  • Simplified String() implementation
  • Improved documentation