Documentation ¶
Index ¶
- type CAD
- func (c CAD) Abs() CAD
- func (c CAD) Add(o CAD) CAD
- func (c CAD) AsCent() int64
- func (c CAD) CanonicalForm() (dollar int64, cent int64)
- func (c CAD) GoString() string
- func (c CAD) MarshalJSON() ([]byte, error)
- func (c CAD) Mul(scalar int64) CAD
- func (c *CAD) Scan(src interface{}) (err error)
- func (c CAD) String() string
- func (c CAD) Sub(o CAD) CAD
- func (c *CAD) UnmarshalJSON(b []byte) error
- func (c CAD) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAD ¶
type CAD struct {
// contains filtered or unexported fields
}
CAD is canadian dollar
func (CAD) CanonicalForm ¶
CanonicalForm returns the canonical form of the amount.
func (CAD) MarshalJSON ¶
MarshalJSON marshals the money to JSON.
func (*CAD) UnmarshalJSON ¶
UnmarshalJSON unmarshals the money from JSON.
Click to show internal directories.
Click to hide internal directories.