myenum

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 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 (
	MyEnumZero MyEnum = iota
	MyEnumOne
	MyEnumTwo
	MyEnumThree
)

func (MyEnum) MarshalJSON

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

MarshalJSON implements json.Marshaler for MyEnum

func (*MyEnum) Scan

func (e *MyEnum) Scan(value interface{}) error

Scan implements sql.Scanner for MyEnum

func (MyEnum) String

func (e MyEnum) String() string

func (*MyEnum) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler for MyEnum

func (MyEnum) Value

func (e MyEnum) Value() (driver.Value, error)

Value implements driver.Valuer for MyEnum

Jump to

Keyboard shortcuts

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