init - add project files
This commit is contained in:
8
tools/jet-2.12.0/internal/utils/is/is.go
Normal file
8
tools/jet-2.12.0/internal/utils/is/is.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package is
|
||||
|
||||
import "reflect"
|
||||
|
||||
// Nil check if v is nil
|
||||
func Nil(v interface{}) bool {
|
||||
return v == nil || (reflect.ValueOf(v).Kind() == reflect.Ptr && reflect.ValueOf(v).IsNil())
|
||||
}
|
||||
Reference in New Issue
Block a user