Documentation ¶ Index ¶ type Valuer func NewValuer[T any](key string, defaultValue ...T) *Valuer[T] func (gt *Valuer[T]) Get(ctx context.Context, defaultVal ...T) T func (v *Valuer[T]) OnDefault(fn func() T) *Valuer[T] func (gt *Valuer[T]) Set(ctx context.Context, v T) context.Context Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Valuer ¶ type Valuer[T any] struct { // contains filtered or unexported fields } func NewValuer ¶ func NewValuer[T any](key string, defaultValue ...T) *Valuer[T] func (*Valuer[T]) Get ¶ func (gt *Valuer[T]) Get(ctx context.Context, defaultVal ...T) T func (*Valuer[T]) OnDefault ¶ func (v *Valuer[T]) OnDefault(fn func() T) *Valuer[T] func (*Valuer[T]) Set ¶ func (gt *Valuer[T]) Set(ctx context.Context, v T) context.Context Source Files ¶ View all Source files valuer.go Click to show internal directories. Click to hide internal directories.