Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for asarray (0.14 sec)

  1. callbacks/helper.go

    func loadOrStoreVisitMap(visitMap *visitMap, v reflect.Value) (loaded bool) {
    	if v.Kind() == reflect.Ptr {
    		v = v.Elem()
    	}
    
    	switch v.Kind() {
    	case reflect.Slice, reflect.Array:
    		loaded = true
    		for i := 0; i < v.Len(); i++ {
    			if !loadOrStoreVisitMap(visitMap, v.Index(i)) {
    				loaded = false
    			}
    		}
    	case reflect.Struct, reflect.Interface:
    		if v.CanAddr() {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 14 12:32:57 GMT 2022
    - 3.7K bytes
    - Viewed (0)
Back to top