enum

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFiatCurrencyDetails added in v0.2.0

func GetFiatCurrencyDetails() map[string]string

Types

type ApiKeyType added in v0.2.0

type ApiKeyType int

func ParseStringToApiKeyTypeEnum added in v0.2.0

func ParseStringToApiKeyTypeEnum(str string) (ApiKeyType, bool)

func (ApiKeyType) String added in v0.2.0

func (a ApiKeyType) String() string

type CryptoCurrency added in v0.2.0

type CryptoCurrency int

func ParseStringToCryptoCurrencyEnum added in v0.2.0

func ParseStringToCryptoCurrencyEnum(str string) (CryptoCurrency, bool)

ParseStringToCryptoCurrencyEnum https://stackoverflow.com/questions/68543604/best-way-to-parse-a-string-to-an-enum

func (CryptoCurrency) String added in v0.2.0

func (f CryptoCurrency) String() string

type Currency added in v0.2.0

type Currency struct {
	Name      string
	ShortName string
}

func GetCryptoCurrencyDetails added in v0.2.0

func GetCryptoCurrencyDetails() []Currency

type FiatCurrency added in v0.2.0

type FiatCurrency int

func ParseStringToFiatCurrencyEnum added in v0.2.0

func ParseStringToFiatCurrencyEnum(str string) (FiatCurrency, bool)

ParseStringToFiatCurrencyEnum https://stackoverflow.com/questions/68543604/best-way-to-parse-a-string-to-an-enum

func (FiatCurrency) String added in v0.2.0

func (f FiatCurrency) String() string

type Mode added in v0.2.0

type Mode int

func ParseStringToModeEnum added in v0.2.0

func ParseStringToModeEnum(str string) (Mode, bool)

ParseStringToModeEnum https://stackoverflow.com/questions/68543604/best-way-to-parse-a-string-to-an-enum

func (Mode) String added in v0.2.0

func (m Mode) String() string

type State

type State int
const (
	CurrencySelection State = iota + 1
	Waiting
	PartiallyPaid
	Confirmed
	Forwarded
	Finished
	Expired
	Failed
)

https://levelup.gitconnected.com/implementing-enums-in-golang-9537c433d6e2

func ParseStringToStateEnum

func ParseStringToStateEnum(str string) (State, bool)

ParseStringToStateEnum ParseStringToModeEnum https://stackoverflow.com/questions/68543604/best-way-to-parse-a-string-to-an-enum

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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