Documentation
¶
Index ¶
- Variables
- func Set[T constraints.Integer](flag T, enabled bool, bs *BooleanSet)
- func Sets[T constraints.Integer](val map[T]bool, bs *BooleanSet)
- type BooleanSet
- func (b *BooleanSet) Enabled(flag int) bool
- func (b *BooleanSet) MarshalBinary() (data []byte, err error)
- func (b *BooleanSet) Scan(src any) error
- func (b *BooleanSet) String() (data string, err error)
- func (b *BooleanSet) UnmarshalBinary(data []byte) error
- func (b *BooleanSet) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrValueNotSupported = errors.New("value not supported")
)
Functions ¶
func Set ¶
func Set[T constraints.Integer](flag T, enabled bool, bs *BooleanSet)
Set sets a BooleanSet value.
func Sets ¶
func Sets[T constraints.Integer](val map[T]bool, bs *BooleanSet)
Sets set BooleanSet values in batch.
Types ¶
type BooleanSet ¶
type BooleanSet []byte
func FromString ¶
func FromString(data string) (*BooleanSet, error)
FromString convert from base64 encoded boolset.
func (*BooleanSet) Enabled ¶
func (b *BooleanSet) Enabled(flag int) bool
func (*BooleanSet) MarshalBinary ¶
func (b *BooleanSet) MarshalBinary() (data []byte, err error)
func (*BooleanSet) Scan ¶
func (b *BooleanSet) Scan(src any) error
Scan implements the sql.Scanner method.
func (*BooleanSet) String ¶
func (b *BooleanSet) String() (data string, err error)
func (*BooleanSet) UnmarshalBinary ¶
func (b *BooleanSet) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.