Rename IsEmpty
This commit is contained in:
parent
16821360fe
commit
e43e2154d8
4 changed files with 11 additions and 7 deletions
|
|
@ -14,8 +14,8 @@ type Rate struct {
|
|||
Price float64 `json:"price"`
|
||||
}
|
||||
|
||||
// IsEmpty returns is the rate is the zero value
|
||||
func (r Rate) IsEmpty() bool {
|
||||
// IsZero returns is the rate is the zero value
|
||||
func (r Rate) IsZero() bool {
|
||||
return r.Start.IsZero() && r.End.IsZero() && r.Price == 0
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue