myenum

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 3 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 (m MyEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler for MyEnum

func (*MyEnum) Scan

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

Scan implements sql.Scanner for MyEnum

func (*MyEnum) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler for MyEnum

func (MyEnum) Value

func (m 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