Versions in this module Expand all Collapse all v0 v0.8.0 Oct 28, 2026 v0.7.0 Oct 23, 2026 v0.6.0 Oct 22, 2026 v0.5.0 Oct 14, 2026 v0.4.1 Oct 7, 2026 v0.4.0 Oct 7, 2026 v0.3.0 Oct 2, 2026 v0.2.1 Sep 29, 2026 v0.2.0 Sep 28, 2026 Changes in this version + func InferType[T ~string](candidates ...Candidate[T]) (enum.Entry[T], error) + type Candidate struct + IsSet bool + Type enum.Entry[T] + func NewCandidate[T ~string](typ enum.Entry[T], isSet bool) Candidate[T] v0.1.0 Sep 21, 2026 Changes in this version + type Variant struct + X X + Y Y + func (v *Variant[X, Y]) UnmarshalJSON(bytes []byte) error + func (v Variant[X, Y]) HasX() bool + func (v Variant[X, Y]) HasY() bool + func (v Variant[X, Y]) MarshalJSON() ([]byte, error) + func (v Variant[X, Y]) WithX(action func(x *X)) + func (v Variant[X, Y]) WithY(action func(y *Y))