package
Version:
v0.4.7
Opens a new window with list of versions in this module.
Published: May 31, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Of[T any] struct {
V T
Valid bool
}
func From[T any](v T) Of[T]
func (o Of[T]) ValueOrZero() T
ValueOrZero 値が入っているときはその値を、そうでないときはゼロ値を返します。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.