justEnum

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyEnum

type MyEnum int
const (
	MyEnumA MyEnum = iota
	MyEnumB
	MyEnumC
)

func (MyEnum) MarshalText

func (e MyEnum) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler by returning the textual representation of MyEnum.

func (MyEnum) String

func (e MyEnum) String() string

String returns the textual representation of MyEnum.

func (*MyEnum) UnmarshalText

func (e *MyEnum) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler by expecting the textual representation of MyEnum.

Jump to

Keyboard shortcuts

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