buff

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuffStrings

func BuffStrings() []string

BuffStrings returns a slice of all String values of the enum

Types

type Buff

type Buff int
const (
	Burrowoed Buff = iota
	Resurrecting
)

func BuffString

func BuffString(s string) (Buff, error)

BuffString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func BuffValues

func BuffValues() []Buff

BuffValues returns all values of the enum

func (Buff) IsABuff

func (i Buff) IsABuff() bool

IsABuff returns "true" if the value is listed in the enum definition. "false" otherwise

func (Buff) MarshalJSON

func (i Buff) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Buff

func (Buff) String

func (i Buff) String() string

func (*Buff) UnmarshalJSON

func (i *Buff) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Buff

Jump to

Keyboard shortcuts

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