Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pkgPathFor (0.09 sec)

  1. src/reflect/type.go

    }
    
    func haveIdenticalType(T, V *abi.Type, cmpTags bool) bool {
    	if cmpTags {
    		return T == V
    	}
    
    	if nameFor(T) != nameFor(V) || T.Kind() != V.Kind() || pkgPathFor(T) != pkgPathFor(V) {
    		return false
    	}
    
    	return haveIdenticalUnderlyingType(T, V, false)
    }
    
    func haveIdenticalUnderlyingType(T, V *abi.Type, cmpTags bool) bool {
    	if T == V {
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/reflect/value.go

    			return cvtComplex
    		}
    
    	case String:
    		if dst.Kind() == abi.Slice && pkgPathFor(dst.Elem()) == "" {
    			switch Kind(dst.Elem().Kind()) {
    			case Uint8:
    				return cvtStringBytes
    			case Int32:
    				return cvtStringRunes
    			}
    		}
    
    	case Slice:
    		if dst.Kind() == abi.String && pkgPathFor(src.Elem()) == "" {
    			switch Kind(src.Elem().Kind()) {
    			case Uint8:
    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