dgroup

package
v5.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Groups holds all possible values.

Functions

This section is empty.

Types

type Group

type Group byte

Group holds the set of dockable groupings.

const (
	CharacterSheets Group = iota
	CharacterTemplates
	Campaigns
	Editors
	Images
	Libraries
	Markdown
	PDFs
	Settings
	SubEditors
)

Possible values.

const LastGroup Group = SubEditors

LastGroup is the last valid value.

func ExtractGroup

func ExtractGroup(str string) Group

ExtractGroup extracts the value from a string.

func (Group) EnsureValid

func (enum Group) EnsureValid() Group

EnsureValid ensures this is of a known value.

func (Group) Key

func (enum Group) Key() string

Key returns the key used in serialization.

func (Group) MarshalText

func (enum Group) MarshalText() (text []byte, err error)

MarshalText implements the encoding.TextMarshaler interface.

func (Group) String

func (enum Group) String() string

String implements fmt.Stringer.

func (*Group) UnmarshalText

func (enum *Group) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL