Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FieldByIndexErr (0.4 sec)

  1. src/reflect/value.go

    				v = v.Elem()
    			}
    		}
    		v = v.Field(x)
    	}
    	return v
    }
    
    // FieldByIndexErr returns the nested field corresponding to index.
    // It returns an error if evaluation requires stepping through a nil
    // pointer, but panics if it must step through a field that
    // is not a struct.
    func (v Value) FieldByIndexErr(index []int) (Value, error) {
    	if len(index) == 1 {
    		return v.Field(index[0]), nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top