1
This commit is contained in:
@@ -67,7 +67,7 @@ func MustMarshal(obj interface{}) []byte {
|
||||
}
|
||||
|
||||
func TryInterface2Int64(data interface{}) (num int64, err error) {
|
||||
if data == nil && IsNil(data) {
|
||||
if data == nil {
|
||||
return num, errors.New("data is nil")
|
||||
}
|
||||
if dataNumber, ok := data.(int64); ok {
|
||||
|
||||
Reference in New Issue
Block a user