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 string
const (
	MyEnumEmpty MyEnum = ""
	MyEnumOne   MyEnum = "One"
	MyEnumTwo   MyEnum = "Two"
	MyEnumThree MyEnum = "Three"
)

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