v0.4.0
Major Changes 🚧
This major release version changes the NewChooser
constructor to check for and error on edge conditions that could later cause a runtime issue during Pick. NOTE: As this changes the API signature for NewChooser
, thus you might have to adjust your code. Since we are still in pre-release semantic versioning now is the time to make these beneficial API refinements before we hit v1.0
and need to enforce stability.
// previous
func NewChooser(choices ...Choice) Chooser
// now
func NewChooser(choices ...Choice) (*Chooser, error)
All relevant documentation and examples has been updated to reflect this change.