Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for typeByIndex (0.08 sec)

  1. src/encoding/json/encode.go

    			// otherwise any punctuation chars are allowed
    			// in a tag name.
    		case !unicode.IsLetter(c) && !unicode.IsDigit(c):
    			return false
    		}
    	}
    	return true
    }
    
    func typeByIndex(t reflect.Type, index []int) reflect.Type {
    	for _, i := range index {
    		if t.Kind() == reflect.Pointer {
    			t = t.Elem()
    		}
    		t = t.Field(i).Type
    	}
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top