attribute

package
v5.24.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Placements holds all possible values.

Types holds all possible values.

Functions

This section is empty.

Types

type Placement added in v5.22.0

type Placement byte

Placement determines the placement of the attribute on the sheet.

const (
	Automatic Placement = iota
	Primary
	Secondary
	Hidden
)

Possible values.

const LastPlacement Placement = Hidden

LastPlacement is the last valid value.

func ExtractPlacement added in v5.22.0

func ExtractPlacement(str string) Placement

ExtractPlacement extracts the value from a string.

func (Placement) EnsureValid added in v5.22.0

func (enum Placement) EnsureValid() Placement

EnsureValid ensures this is of a known value.

func (Placement) Key added in v5.22.0

func (enum Placement) Key() string

Key returns the key used in serialization.

func (Placement) MarshalText added in v5.22.0

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

MarshalText implements the encoding.TextMarshaler interface.

func (Placement) String added in v5.22.0

func (enum Placement) String() string

String implements fmt.Stringer.

func (*Placement) UnmarshalText added in v5.22.0

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

UnmarshalText implements the encoding.TextUnmarshaler interface.

type Type

type Type byte

Type holds the type of an attribute definition.

const (
	Integer Type = iota
	IntegerRef
	Decimal
	DecimalRef
	Pool
	PoolRef
	PrimarySeparator
	SecondarySeparator
	PoolSeparator
)

Possible values.

const LastType Type = PoolSeparator

LastType is the last valid value.

func ExtractType

func ExtractType(str string) Type

ExtractType extracts the value from a string.

func (Type) EnsureValid

func (enum Type) EnsureValid() Type

EnsureValid ensures this is of a known value.

func (Type) Key

func (enum Type) Key() string

Key returns the key used in serialization.

func (Type) MarshalText

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

MarshalText implements the encoding.TextMarshaler interface.

func (Type) String

func (enum Type) String() string

String implements fmt.Stringer.

func (*Type) UnmarshalText

func (enum *Type) 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