Releases: oissevalt/opzione
Releases · oissevalt/opzione
v1.1.1
v1.1.0
v1.0.0
Warning
This release contains breaking changes.
Simple
andNewOption
are removed.Chained
has been renamed toOption
, which is the only optional type this package provides. It can be constructed with functionsSome
andNone
.- Updates of documentation and README.
v0.3.2
v0.3.1
Extensive refactor. The package now has a refined logic for deciding whether an optional is None.
Chained
now does not perform recursive None evaluation on simple pointer types; it simply compares whether the value to nil
.
From this update, Chained
will not track unsafe pointers due to their unpredictable nature.
More test cases have been added.
v0.3.0
- Implemented support for pointer-like types, such as slices, maps, channels, and interfaces
- Nil slices are valid Some, since calling
len
,cap
, andappend
on a nil slice is safe
- Nil slices are valid Some, since calling
- New
NewOptional
function that choosesOptional
implementation according to the specific type
v0.3.0-rc1
Support for slices, funcs, maps, channels, and interfaces.
v0.2.1
First release
v0.1.1 Add docs; change Take's signature