- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,552 for ppkg (0.08 sec)
-
src/cmd/go/internal/load/pkg.go
} } } var mains []*Package for _, pkg := range pkgs { if pkg.Name == "main" || (pkg.Name == "" && pkg.Error != nil) { treatAsMain[pkg.ImportPath] = true mains = append(mains, pkg) continue } if len(pkg.InvalidGoFiles) > 0 { // TODO(#45999): && pkg.Name == "", but currently go/build sets pkg.Name arbitrarily if it is ambiguous.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
src/go/types/issues_test.go
func main() { var info types.Info for _, obj := range info.Uses { _ = obj.Pkg() } } ` f := func(test, src string) { info := &Info{Uses: make(map[*ast.Ident]Object)} mustTypecheck(src, nil, info) var pkg *Package count := 0 for id, obj := range info.Uses { if id.Name == "Pkg" { pkg = obj.Pkg() count++ } } if count != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
func main() { var info types.Info for _, obj := range info.Uses { _ = obj.Pkg() } } ` f := func(test, src string) { info := &Info{Uses: make(map[*syntax.Name]Object)} mustTypecheck(src, nil, info) var pkg *Package count := 0 for id, obj := range info.Uses { if id.Value == "Pkg" { pkg = obj.Pkg() count++ } } if count != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go
if tv, ok := pass.TypesInfo.Types[x]; ok && tv.IsValue() { return lockPath(pass.Pkg, tv.Type, nil) } return nil } // lockPath returns a typePath describing the location of a lock value // contained in typ. If there is no contained lock, it returns nil. // // The seen map is used to short-circuit infinite recursion due to type cycles. func lockPath(tpkg *types.Package, typ types.Type, seen map[types.Type]bool) typePath {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.9K bytes - Viewed (0) -
src/cmd/internal/obj/sym.go
panic("bad index") } ctxt.nonpkgrefs = append(ctxt.nonpkgrefs, rs) nonpkgidx++ return } if k, ok := ctxt.pkgIdx[pkg]; ok { rs.PkgIdx = k return } rs.PkgIdx = ipkg ctxt.pkgIdx[pkg] = ipkg ipkg++ }) } // Returns whether s is a non-package symbol, which needs to be referenced // by name instead of by index.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 14:41:10 UTC 2024 - 14.1K bytes - Viewed (0) -
src/go/build/deps_test.go
t.Errorf("unexpected dependency: %s imports %v", pkg, bad) } } } var buildIgnore = []byte("\n//go:build ignore") func findImports(pkg string) ([]string, error) { vpkg := pkg if strings.HasPrefix(pkg, "golang.org") { vpkg = "vendor/" + pkg } dir := filepath.Join(Default.GOROOT, "src", vpkg) files, err := os.ReadDir(dir) if err != nil { return nil, err } var imports []string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
src/internal/coverage/cfile/testsupport.go
// testmain code when "go test -cover" is in effect. It is not // intended to be used other than internally by the Go command's // generated code. func ProcessCoverTestDir(dir string, cfile string, cm string, cpkg string, w io.Writer) error { cmode := coverage.ParseCounterMode(cm) if cmode == coverage.CtrModeInvalid { return fmt.Errorf("invalid counter mode %q", cm) } // Emit meta-data and counter data.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 8.7K bytes - Viewed (0) -
hack/make-rules/test.sh
| xargs -I{} -n 1 -P "${KUBE_COVERPROCS}" \ bash -c "set -o pipefail; _pkg=\"\$0\"; _pkg_out=\${_pkg//\//_}; \ go test ${goflags[*]:+${goflags[*]}} \ ${KUBE_TIMEOUT} \ -cover -covermode=\"${KUBE_COVERMODE}\" \ -coverprofile=\"${cover_report_dir}/\${_pkg}/${cover_profile}\" \ \"\${_pkg}\" \ ${testargs[*]:+${testargs[*]}} \
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 22:40:10 UTC 2024 - 10.8K bytes - Viewed (0) -
api/go1.23.txt
pkg crypto/x509, method (OID) MarshalText() ([]uint8, error) #66249 pkg debug/elf, const PT_OPENBSD_NOBTCFI = 1705237480 #66054 pkg debug/elf, const PT_OPENBSD_NOBTCFI ProgType #66054 pkg debug/elf, const STT_GNU_IFUNC = 10 #66836 pkg debug/elf, const STT_GNU_IFUNC SymType #66836 pkg debug/elf, const STT_RELC = 8 #66836 pkg debug/elf, const STT_RELC SymType #66836 pkg debug/elf, const STT_SRELC = 9 #66836
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 20:48:49 UTC 2024 - 8.4K bytes - Viewed (0) -
tools/golangci-override.yaml
- pkg: gomodules.xyz/jsonpatch/v3 desc: "don't use v3; v2 is orders of magnitude higher performance" - pkg: k8s.io/apimachinery/pkg/util/sets desc: "use istio.io/istio/pkg/util/sets" - pkg: k8s.io/utils/env desc: "use istio.io/istio/pkg/env" - pkg: k8s.io/utils/strings/slices desc: "use istio.io/istio/pkg/slices" - pkg: k8s.io/utils/pointer
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 2.9K bytes - Viewed (0)