Every line of 'golang nil' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.
33 func (mv ManyValidators) Nil() Validator { 34 return func() error { 35 for _, obj := range mv.Objs { 36 if !IsNil(obj) { 37 return Error(ErrSomeNil, nil) 38 } 39 } 40 return nil 41 } 42 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
23 func (t Time) Nil() bool { 24 if len(t) == 0 { 25 return true 26 } 27 return false 28 }