multiple

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Code generated by go-enum, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Biscuit

type Biscuit int
const (
	BiscuitDigestive Biscuit = 0 //enum:default
	BiscuitHobnob    Biscuit = 1 << iota
	BiscuitNice
	BiscuitJammieDodger
	BiscuitShortbread
	BiscuitGingerNut
)

func AllBiscuits

func AllBiscuits() []Biscuit

func BiscuitFromString

func BiscuitFromString(val string) (*Biscuit, error)

func ToBiscuit

func ToBiscuit(value int) Biscuit

func (Biscuit) GetBSON

func (biscuit_enum Biscuit) GetBSON() (interface{}, error)

func (Biscuit) MarshalBSONValue added in v0.1.1

func (biscuit_enum Biscuit) MarshalBSONValue() (bsontype.Type, []byte, error)

func (Biscuit) MarshalGQL

func (biscuit_enum Biscuit) MarshalGQL(w io.Writer)

func (Biscuit) MarshalJSON

func (biscuit_enum Biscuit) MarshalJSON() ([]byte, error)

func (Biscuit) MarshalText added in v0.0.3

func (biscuit_enum Biscuit) MarshalText() ([]byte, error)

func (Biscuit) MarshalXML

func (biscuit_enum Biscuit) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Biscuit) Scan

func (biscuit_enum *Biscuit) Scan(val any) error

func (*Biscuit) SetBSON

func (biscuit_enum *Biscuit) SetBSON(raw bson.Raw) error

func (Biscuit) String

func (biscuit_enum Biscuit) String() string

func (*Biscuit) UnmarshalBSON added in v0.1.1

func (biscuit_enum *Biscuit) UnmarshalBSON(data []byte) error

func (*Biscuit) UnmarshalGQL

func (biscuit_enum *Biscuit) UnmarshalGQL(val interface{}) error

func (*Biscuit) UnmarshalJSON

func (biscuit_enum *Biscuit) UnmarshalJSON(val []byte) error

func (*Biscuit) UnmarshalText added in v0.0.3

func (biscuit_enum *Biscuit) UnmarshalText(text []byte) error

func (*Biscuit) UnmarshalXML

func (biscuit_enum *Biscuit) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (Biscuit) Validate

func (biscuit_enum Biscuit) Validate() error

func (Biscuit) Value

func (biscuit_enum Biscuit) Value() (driver.Value, error)

func (Biscuit) Values

func (Biscuit) Values() []string
type Cookie int
const (
	ChocolateDigestive  Cookie = 0 //enum:default
	ChocolateShortbread Cookie = 1 << iota
	ChocolateFinger
	JaffaCake
	ChocolateHobnob
)

func AllCookies

func AllCookies() []Cookie

func CookieFromString

func CookieFromString(val string) (*Cookie, error)

func ToCookie

func ToCookie(value int) Cookie

func (Cookie) GetBSON

func (cookie_enum Cookie) GetBSON() (interface{}, error)

func (Cookie) MarshalBSONValue added in v0.1.1

func (cookie_enum Cookie) MarshalBSONValue() (bsontype.Type, []byte, error)

func (Cookie) MarshalGQL

func (cookie_enum Cookie) MarshalGQL(w io.Writer)

func (Cookie) MarshalJSON

func (cookie_enum Cookie) MarshalJSON() ([]byte, error)

func (Cookie) MarshalText added in v0.0.3

func (cookie_enum Cookie) MarshalText() ([]byte, error)

func (Cookie) MarshalXML

func (cookie_enum Cookie) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Cookie) Scan

func (cookie_enum *Cookie) Scan(val any) error

func (*Cookie) SetBSON

func (cookie_enum *Cookie) SetBSON(raw bson.Raw) error

func (Cookie) String

func (cookie_enum Cookie) String() string

func (*Cookie) UnmarshalBSON added in v0.1.1

func (cookie_enum *Cookie) UnmarshalBSON(data []byte) error

func (*Cookie) UnmarshalGQL

func (cookie_enum *Cookie) UnmarshalGQL(val interface{}) error

func (*Cookie) UnmarshalJSON

func (cookie_enum *Cookie) UnmarshalJSON(val []byte) error

func (*Cookie) UnmarshalText added in v0.0.3

func (cookie_enum *Cookie) UnmarshalText(text []byte) error

func (*Cookie) UnmarshalXML

func (cookie_enum *Cookie) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (Cookie) Validate

func (cookie_enum Cookie) Validate() error

func (Cookie) Value

func (cookie_enum Cookie) Value() (driver.Value, error)

func (Cookie) Values

func (Cookie) Values() []string

Directories

Path Synopsis
Code generated by go-enum, DO NOT EDIT.
Code generated by go-enum, DO NOT EDIT.

Jump to

Keyboard shortcuts

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