Documentation
¶
Index ¶
- func InverseMap[K, V comparable](d map[K]V) (map[V]K, error)
- func MustInverseMap[K, V comparable](d map[K]V) map[V]K
- func OpenAndParse[T any](file string, f func([]byte) (T, error)) (T, error)
- func ParseUint(s string) (uint, error)
- func Ptr[T any](t T) *T
- func ReadAndParse[T any](r io.ReadCloser, f func([]byte) (T, error)) (T, error)
- type Opt
- type Rat
- type Ring
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InverseMap ¶
func InverseMap[K, V comparable](d map[K]V) (map[V]K, error)
func MustInverseMap ¶
func MustInverseMap[K, V comparable](d map[K]V) map[V]K
func ReadAndParse ¶
Types ¶
type Opt ¶
type Opt[T any] struct { // contains filtered or unexported fields }
func (*Opt[T]) WhenUpdated ¶
func (p *Opt[T]) WhenUpdated(f func(v T))
WhenUpdated calls f the first time this is called after being Update() or NewOpt().
Click to show internal directories.
Click to hide internal directories.