configutils

package
v0.0.15-3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt[T any] struct {
	Set   bool
	Value T
}

func (*Opt[T]) DecodeHook

func (optional *Opt[T]) DecodeHook(raw any) error

func (Opt[T]) OptOrEmpty added in v0.0.11

func (optional Opt[T]) OptOrEmpty(fallback Opt[T]) T

Returns optional.Value (if set) or fallback.Value (if set), else T empty is returned

func (Opt[T]) OptOrFallback added in v0.0.11

func (optional Opt[T]) OptOrFallback(fallback Opt[T]) T

Returns optional.Value (if set) or fallback.Value

func (Opt[T]) ValueOrFallback added in v0.0.11

func (optional Opt[T]) ValueOrFallback(fallback T) T

Returns optional.Value (if set) or fallback

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL