This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
backend/internal/model/helpers.go

10 lines
110 B
Go
Raw Normal View History

2021-07-14 04:58:10 +00:00
package model
2021-02-21 09:17:54 +00:00
import (
"reflect"
2021-02-21 09:17:54 +00:00
)
func isZero(v interface{}) bool {
return reflect.ValueOf(v).IsZero()
2021-02-21 09:17:54 +00:00
}