Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pkpath (0.09 sec)

  1. src/reflect/all_test.go

    			if exported != test.exported {
    				t.Errorf("test-%d: got exported=%v want exported=%v", i, exported, test.exported)
    			}
    			if field.PkgPath != test.field.PkgPath {
    				t.Errorf("test-%d: got PkgPath=%q want pkgPath=%q", i, field.PkgPath, test.field.PkgPath)
    			}
    		})
    	}
    }
    
    func TestStructOfGC(t *testing.T) {
    	type T *uintptr
    	tt := TypeOf(T(nil))
    	fields := []StructField{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/exec.go

    			// same situations.
    			var from, toPath string
    			if m := p.Module; m == nil {
    				if p.Root == "" { // command-line-arguments in GOPATH mode, maybe?
    					from = p.Dir
    					toPath = p.ImportPath
    				} else if p.Goroot {
    					from = p.Root
    					toPath = "GOROOT"
    				} else {
    					from = p.Root
    					toPath = "GOPATH"
    				}
    			} else if m.Dir == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    			r.path = resolveImportPath(path, parentPath, parentDir, parentRoot, parentIsStd)
    		} else if mode&ResolveModule != 0 {
    			r.path = moduleImportPath(path, parentPath, parentDir, parentRoot)
    		}
    		if r.path == "" {
    			r.path = path
    		}
    		return r
    	})
    	// Invariant: r.path is set to the resolved import path. If the path cannot
    	// be resolved, r.path is set to path, the source import path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top