type

Value

Value carries an optional logical value. Its zero value is empty. For raw input, empty means omitted and Present(store.Null()) means explicit null. For typed scalars, empty is the portable empty state, not a durable absence encoding. T must follow its own ownership contract; this carrier does not deep-clone arbitrary mutable application values.

Full signature

type Value[T any] struct { value T present bool }

Source operation/contract.go:202

Methods

  • Value.Get()

    Get returns the logical value and whether it is present.

Related guides