github.com/searKing/golang/go@v1.2.74/reflect/object.go (about)

     1  // Copyright 2020 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package reflect
     6  
     7  import "reflect"
     8  
     9  func IsNilObject(obtained interface{}) (result bool) {
    10  	if obtained == nil {
    11  		result = true
    12  	} else {
    13  		return IsNilValue(reflect.ValueOf(obtained))
    14  	}
    15  	return
    16  }