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

type MyEnumJSON added in v0.0.4

type MyEnumJSON int
const (
	MyEnumJSONZero MyEnumJSON = iota
	MyEnumJSONOne
	MyEnumJSONTwo
	MyEnumJSONThree
)

func (MyEnumJSON) String added in v0.0.4

func (i MyEnumJSON) String() string

Jump to

Keyboard shortcuts

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