| 1 | package money |
||
| 2 | |||
| 3 | // Amount stores the amounts used for calculations |
||
| 4 | type Amount struct { |
||
| 5 | val int64 |
||
| 6 | } |
||
| 7 | |||
| 8 | // Value returns the amount value |
||
| 9 | func (a *Amount) Value() int64 { |
||
| 10 | 1 | return a.val |
|
| 11 | } |
||
| 12 |