Documentation
¶
Index ¶
- func SetJSONRegistry(r Registry) error
- type Flag
- func (f Flag) All(flag Flag) bool
- func (f Flag) Any(flag Flag) bool
- func (f *Flag) Grant(flag Flag)
- func (f Flag) Has(flag Flag) bool
- func (f Flag) MarshalJSON() ([]byte, error)
- func (f *Flag) Reset()
- func (f *Flag) Revoke(flag Flag)
- func (f *Flag) Scan(value any) error
- func (f *Flag) Toggle(flag Flag)
- func (f *Flag) UnmarshalJSON(data []byte) error
- func (f Flag) Value() (driver.Value, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetJSONRegistry ¶
SetJSONRegistry sets the global JSON registry once at process startup.
Types ¶
type Flag ¶
type Flag uint64
Flag represents a set of bit flags.
func (Flag) MarshalJSON ¶
MarshalJSON encodes f as a JSON array of flag names.
func (*Flag) UnmarshalJSON ¶
UnmarshalJSON decodes a JSON array of flag names into f.
Click to show internal directories.
Click to hide internal directories.