Skip to content
Snippets Groups Projects
Pointer.go 150 B
Newer Older
  • Learn to ignore specific revisions
  • Md. Alim Ul Karim's avatar
    Md. Alim Ul Karim committed
    package isany
    
    import "reflect"
    
    func Pointer(anyItem interface{}) (isPtr bool) {
    	rv := reflect.ValueOf(anyItem)
    
    	return rv.Kind() == reflect.Ptr
    }