Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,961 for pkgh (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/internal/fix/fix.go

    	pkgs := load.PackagesAndErrors(ctx, load.PackageOpts{}, args)
    	w := 0
    	for _, pkg := range pkgs {
    		if pkg.Error != nil {
    			base.Errorf("%v", pkg.Error)
    			continue
    		}
    		pkgs[w] = pkg
    		w++
    	}
    	pkgs = pkgs[:w]
    
    	printed := false
    	for _, pkg := range pkgs {
    		if modload.Enabled() && pkg.Module != nil && !pkg.Module.Main {
    			if !printed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/cover/func.go

    	for {
    		var pkg Pkg
    		err := dec.Decode(&pkg)
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			return nil, fmt.Errorf("decoding go list json: %v", err)
    		}
    		pkgs[pkg.ImportPath] = &pkg
    	}
    	return pkgs, nil
    }
    
    // findFile finds the location of the named file in GOROOT, GOPATH etc.
    func findFile(pkgs map[string]*Pkg, file string) (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 6.3K bytes
    - Viewed (0)
Back to top