Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/reflect/value.go

    func (v Value) Type() Type {
    	if v.flag != 0 && v.flag&flagMethod == 0 {
    		return (*rtype)(noescape(unsafe.Pointer(v.typ_))) // inline of toRType(v.typ()), for own inlining in inline test
    	}
    	return v.typeSlow()
    }
    
    func (v Value) typeSlow() Type {
    	if v.flag == 0 {
    		panic(&ValueError{"reflect.Value.Type", Invalid})
    	}
    
    	typ := v.typ()
    	if v.flag&flagMethod == 0 {
    		return toRType(v.typ())
    	}
    
    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