25 lines
432 B
Go
25 lines
432 B
Go
|
package statements
|
||
|
|
||
|
type AmountStatement struct {
|
||
|
IStatement
|
||
|
_value float64
|
||
|
_unit string
|
||
|
_func *FunctionStatement
|
||
|
}
|
||
|
|
||
|
func ( this *AmountStatement ) SetValue( v float64 ) {
|
||
|
this._value = v
|
||
|
}
|
||
|
|
||
|
func ( this *AmountStatement ) Value() float64 {
|
||
|
return this._value
|
||
|
}
|
||
|
|
||
|
func ( this *AmountStatement ) SetUnit( v string ) {
|
||
|
this._unit = v
|
||
|
}
|
||
|
|
||
|
func ( this *AmountStatement ) Unit() string {
|
||
|
return this._unit
|
||
|
}
|