Documentation ¶
Index ¶
- Variables
- func MustParseCurrency(value, currencyCode string) currency.Amount
- type Currency
- type JSON
- func (j JSON) MarshalJSON() ([]byte, error)
- func (j JSON) MarshalYAML() (interface{}, error)
- func (j *JSON) Scan(src interface{}) error
- func (j *JSON) Unmarshal(v interface{}) error
- func (j *JSON) UnmarshalJSON(data []byte) error
- func (j *JSON) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (j JSON) Value() (driver.Value, error)
- type TaxRate
- type UUID
- type UUIDArray
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCurrencyInvalid = errors.New("currency_invalid")
View Source
var (
ErrJSONInvalid = errors.New("json_invalid")
)
View Source
var ErrTaxRateInvalid = errors.New("tax_rate_invalid")
Functions ¶
func MustParseCurrency ¶ added in v0.1.5
Types ¶
type Currency ¶ added in v0.1.5
func CurrencyFrom ¶ added in v0.1.5
func CurrencyRounded ¶ added in v0.1.5
func (Currency) MarshalYAML ¶ added in v0.1.5
func (*Currency) UnmarshalYAML ¶ added in v0.1.5
type JSON ¶
type JSON struct { JSON json.RawMessage Valid bool }
func RemoveJSONKey ¶ added in v0.1.5
func (JSON) MarshalJSON ¶ added in v0.1.2
func (JSON) MarshalYAML ¶
func (*JSON) UnmarshalJSON ¶ added in v0.1.2
func (*JSON) UnmarshalYAML ¶
type UUID ¶
func (UUID) MarshalJSON ¶ added in v0.1.2
func (*UUID) UnmarshalJSON ¶ added in v0.1.2
func (*UUID) UnmarshalText ¶ added in v0.1.2
func (*UUID) UnmarshalYAML ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.