- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,314 for pkgh (0.05 sec)
-
src/cmd/compile/internal/types/pkg.go
if pkg == nil { pkg = nopkg } if s := pkg.Syms[name]; s != nil { return s, true } s = &Sym{ Name: name, Pkg: pkg, } pkg.Syms[name] = s return s, false } func (pkg *Pkg) LookupBytes(name []byte) *Sym { // TODO(gri) remove this check in favor of specialized lookup if pkg == nil { pkg = nopkg } if s := pkg.Syms[string(name)]; s != nil { return s }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:28:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_statements.txt
-- go.mod -- module m go 1.16 -- pkg1/a.go -- package pkg1 import "fmt" func F() { fmt.Println("pkg1") } -- pkg2/a.go -- package pkg2 import "fmt" func F() { fmt.Println("pkg2") } -- pkg2/a_test.go -- package pkg2 -- pkg3/a.go -- package pkg3 import "fmt" func F() { fmt.Println("pkg3") } -- pkg3/a_test.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 06 17:36:30 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/doc/testdata/pkg.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package comment. package pkg import "io" // Constants // Comment about exported constant. const ExportedConstant = 1 // Comment about internal constant. const internalConstant = 2 // Comment about block of constants. const ( // Comment before ConstOne.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:16:55 UTC 2023 - 5.4K bytes - Viewed (0) -
hack/verify-pkg-names.sh
# See the License for the specific language governing permissions and # limitations under the License. # This script verifies whether codes follow golang convention. # Usage: `hack/verify-pkg-names.sh`. set -o errexit set -o nounset set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. source "${KUBE_ROOT}/hack/lib/init.sh" cd "${KUBE_ROOT}"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 21:06:28 UTC 2023 - 1.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_compile_multi_pkg.txt
go test -c -o $devnull ./... rm pkg1.test$GOEXE rm pkg2.test$GOEXE go test -o . ./pkg/... exists -exec pkg1.test$GOEXE exists -exec pkg2.test$GOEXE -- go.mod -- module example -- pkg/pkg1/pkg1_test.go -- package pkg1 -- pkg/pkg2/pkg2_test.go -- package pkg2 -- anotherpkg/pkg1/pkg1_test.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:09:34 UTC 2023 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate_test.go
func TestInstantiateNonEquality(t *testing.T) { const src = "package p; type T[P any] int" pkg1 := mustTypecheck(src, nil, nil) pkg2 := mustTypecheck(src, nil, nil) // We consider T1 and T2 to be distinct types, so their instances should not // be deduplicated by the context. T1 := pkg1.Scope().Lookup("T").Type().(*Named) T2 := pkg2.Scope().Lookup("T").Type().(*Named) ctxt := NewContext()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 5.8K bytes - Viewed (0) -
src/go/types/instantiate_test.go
func TestInstantiateNonEquality(t *testing.T) { const src = "package p; type T[P any] int" pkg1 := mustTypecheck(src, nil, nil) pkg2 := mustTypecheck(src, nil, nil) // We consider T1 and T2 to be distinct types, so their instances should not // be deduplicated by the context. T1 := pkg1.Scope().Lookup("T").Type().(*Named) T2 := pkg2.Scope().Lookup("T").Type().(*Named) ctxt := NewContext()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
cmd/import-boss/main_test.go
} func TestInverse(t *testing.T) { pkgs, err := loadPkgs("./testdata/inverse/...") if err != nil { t.Fatalf("unexpected failure: %v", err) } if len(pkgs) != 10 { t.Fatalf("expected 10 pkg results, got %d", len(pkgs)) } boss := newBoss(pkgs) var errs []error for _, pkg := range pkgs { errs = append(errs, boss.Verify(pkg)...) } expect := []string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 8.8K bytes - Viewed (0) -
src/cmd/go/internal/modindex/index_test.go
t.FailNow() } } // Check packages in increasing complexity, one at a time. pkgs := []string{ "crypto", "encoding", "unsafe", "encoding/json", "runtime", "net", } var raws []*rawPackage for _, pkg := range pkgs { raw := importRaw(src, pkg) raws = append(raws, raw) t.Run(pkg, func(t *testing.T) { data := encodeModuleBytes([]*rawPackage{raw}) m, err := fromBytes(src, data)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 28 23:35:08 UTC 2022 - 2.3K bytes - Viewed (0) -
src/go/doc/comment_test.go
) if b := pkg.HTML(input); string(b) != wantHTML { t.Errorf("%s", diff.Diff("pkg.HTML", b, "want", []byte(wantHTML))) } if b := pkg.Markdown(input); string(b) != wantMarkdown { t.Errorf("%s", diff.Diff("pkg.Markdown", b, "want", []byte(wantMarkdown))) } if b := pkg.Text(input); string(b) != wantText { t.Errorf("%s", diff.Diff("pkg.Text", b, "want", []byte(wantText))) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 10 06:33:18 UTC 2022 - 3K bytes - Viewed (0)