alignment_type

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	All = []Alignment{
		Left,
		Middle,
		Right,
	}
)
View Source
var ErrInvalid = errors.New("invalid enumeration type")

Functions

func ErrorV

func ErrorV(v string) error

func Is

func Is(s string) bool

Types

type Alignment

type Alignment string
const (
	Left   Alignment = "left"
	Middle Alignment = "middle"
	Right  Alignment = "right"
)

func Parse

func Parse(v string) (Alignment, error)

func (Alignment) MarshalJSON

func (t Alignment) MarshalJSON() ([]byte, error)

func (Alignment) MarshalYAML

func (t Alignment) MarshalYAML() (interface{}, error)

func (Alignment) String

func (t Alignment) String() string

func (*Alignment) UnmarshalJSON

func (t *Alignment) UnmarshalJSON(data []byte) error

func (*Alignment) UnmarshalYAML

func (t *Alignment) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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