Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 285 for pkpath (0.25 sec)

  1. src/cmd/compile/internal/typecheck/iexport.go

    //         Elem typeOff
    //     }
    //
    //     type FuncType struct {
    //         Tag       itag // signatureType
    //         PkgPath   stringOff
    //         Signature Signature
    //     }
    //
    //     type StructType struct {
    //         Tag     itag // structType
    //         PkgPath stringOff
    //         Fields []struct {
    //             Pos      Pos
    //             Name     stringOff
    //             Type     typeOff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. cmd/import-boss/main.go

    	for _, imp := range pkg.Imports {
    		direct = append(direct, imp.PkgPath)
    		dfsImports(&indirect, seen, imp)
    	}
    	return direct, indirect
    }
    
    func dfsImports(dest *[]string, seen map[string]bool, p *packages.Package) {
    	for _, p2 := range p.Imports {
    		if seen[p2.PkgPath] {
    			continue
    		}
    		seen[p2.PkgPath] = true
    		*dest = append(*dest, p2.PkgPath)
    		dfsImports(dest, seen, p2)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/printers/sourcechecker_test.go

    	}
    
    	testCases := []struct {
    		name            string
    		pkgPath         string
    		shouldBeAllowed bool
    	}{
    		{
    			name:            "package path beginning with forbidden prefix is rejected",
    			pkgPath:         "foo/bar/baz/buz",
    			shouldBeAllowed: false,
    		},
    		{
    			name:            "package path not fully matching forbidden prefix is allowed",
    			pkgPath:         "bar/foo",
    			shouldBeAllowed: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/cover/cover.go

    	// Currently filename is formed as packagepath + "/" + basename.
    	fnpos := f.fset.Position(fn.Pos())
    	ppath := pkgconfig.PkgPath
    	filename := ppath + "/" + filepath.Base(fnpos.Filename)
    
    	// The convention for cmd/cover is that if the go command that
    	// kicks off coverage specifies a local import path (e.g. "go test
    	// -cover ./thispackage"), the tool will capture full pathnames
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. cmd/kube-apiserver/app/testing/testserver.go

    		pkgPath = filepath.Join(testSrcdir, testWorkspace, pkgPath)
    	}
    
    	// If the path is still not absolute, something other than bazel compiled
    	// with -trimpath.
    	if !filepath.IsAbs(pkgPath) {
    		return "", fmt.Errorf("can't construct an absolute path from %q", pkgPath)
    	}
    
    	t.Logf("Resolved testserver package path to: %q", pkgPath)
    
    	return pkgPath, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/gccgoinstallation_test.go

    	for _, test := range [...]importerTest{
    		{pkgpath: "io", name: "Reader", want: "type Reader interface{Read(p []byte) (n int, err error)}"},
    		{pkgpath: "io", name: "ReadWriter", want: "type ReadWriter interface{Reader; Writer}"},
    		{pkgpath: "math", name: "Pi", want: "const Pi untyped float"},
    		{pkgpath: "math", name: "Sin", want: "func Sin(x float64) float64"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 21 02:25:41 UTC 2021
    - 4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/testing/testserver.go

    		pkgPath = filepath.Join(testSrcdir, testWorkspace, pkgPath)
    	}
    
    	// If the path is still not absolute, something other than bazel compiled
    	// with -trimpath.
    	if !filepath.IsAbs(pkgPath) {
    		return "", fmt.Errorf("can't construct an absolute path from %q", pkgPath)
    	}
    
    	t.Logf("Resolved testserver package path to: %q", pkgPath)
    
    	return pkgPath, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 9K bytes
    - Viewed (1)
  8. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	return pathForCert(pkiPath, name), pathForKey(pkiPath, name)
    }
    
    func pathForCert(pkiPath, name string) string {
    	return filepath.Join(pkiPath, fmt.Sprintf("%s.crt", name))
    }
    
    func pathForKey(pkiPath, name string) string {
    	return filepath.Join(pkiPath, fmt.Sprintf("%s.key", name))
    }
    
    func pathForPublicKey(pkiPath, name string) string {
    	return filepath.Join(pkiPath, fmt.Sprintf("%s.pub", name))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/printers/sourcechecker.go

    // object's package path, and determines if the
    // object originates from a disallowed source.
    type illegalPackageSourceChecker struct {
    	// disallowedPrefixes is a slice of disallowed package path
    	// prefixes for a given runtime.Object that we are printing.
    	disallowedPrefixes []string
    }
    
    func (c *illegalPackageSourceChecker) IsForbidden(pkgPath string) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/importer.go

    			}
    			reader = rs
    			fpath = "<lookup " + pkgpath + ">"
    			// Take name from Name method (like on os.File) if present.
    			if n, ok := rc.(interface{ Name() string }); ok {
    				fpath = n.Name()
    			}
    		} else {
    			fpath, err = findExportFile(searchpaths, pkgpath)
    			if err != nil {
    				return nil, err
    			}
    
    			r, closer, err := openExportFile(fpath)
    			if err != nil {
    				return nil, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 6.8K bytes
    - Viewed (0)
Back to top