Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrFalseFn ¶
type AttrFalseFn[T any] struct { // contains filtered or unexported fields }
type AttrFalseValue ¶
type AttrFalseValue[T any] struct { // contains filtered or unexported fields }
func FalseValue ¶
func FalseValue[T any](falseValue T) AttrFalseValue[T]
type AttrTrueFn ¶
type AttrTrueFn[T any] struct { // contains filtered or unexported fields }
type AttrTrueValue ¶
type AttrTrueValue[T any] struct { // contains filtered or unexported fields }
type Ternary ¶
type Ternary[T any] struct { // contains filtered or unexported fields }
func NewTernary ¶
func NewTernary[T any](attrs ...TernaryAttributer[T]) Ternary[T]
func (Ternary[T]) GetByValue ¶
GetByValue 获取值 → 通过值
func (Ternary[T]) Set ¶
func (t Ternary[T]) Set(attrs ...TernaryAttributer[T]) Ternary[T]
type TernaryAttributer ¶
Click to show internal directories.
Click to hide internal directories.