Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrencyUnit ¶
URL extends the currency.Unit to add implementations to the Marshaler and Unmarshaler interfaces
func NewCurrencyUnit ¶
func NewCurrencyUnit(u currency.Unit) CurrencyUnit
NewCurrencyUnit returns a new marshaler.CurrencyUnit from u
func (CurrencyUnit) MarshalJSON ¶
func (u CurrencyUnit) MarshalJSON() ([]byte, error)
MarshalJSON transforms the CurrencyUnit to a String if it's not defined it'll use the default one which is currency.XXX
func (*CurrencyUnit) UnmarshalJSON ¶
func (u *CurrencyUnit) UnmarshalJSON(b []byte) error
UnmarshalJSON transforms the b to a string
type URL ¶
URL extends the url.URL to add implementations to the Marshaler and Unmarshaler interfaces
func (URL) MarshalJSON ¶
MarshalJSON transforms the url to a String
func (*URL) UnmarshalJSON ¶
UnmarshalJSON transforms the b to a string
Click to show internal directories.
Click to hide internal directories.