tag

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TagStrings

func TagStrings() []string

TagStrings returns a slice of all String values of the enum

Types

type Tag

type Tag uint64

Tag represents a metadata tag.

const (
	Unknown Tag = iota
	Collectible
	Exchange
	Metaverse
	RSS
	Social
	Transaction
)

func TagString

func TagString(s string) (Tag, error)

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

func TagValues

func TagValues() []Tag

TagValues returns all values of the enum

func (Tag) IsATag

func (i Tag) IsATag() bool

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

func (Tag) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for Tag

func (*Tag) Scan

func (i *Tag) Scan(value interface{}) error

func (Tag) String

func (i Tag) String() string

func (*Tag) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for Tag

func (*Tag) UnmarshalParam

func (t *Tag) UnmarshalParam(param string) error

func (Tag) Value

func (i Tag) Value() (driver.Value, error)

func (Tag) Values

func (Tag) Values() []string

Jump to

Keyboard shortcuts

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