Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for pkgName (0.27 sec)

  1. src/crypto/purego_test.go

    	allGOARCH := make(map[string]bool)
    	for _, pair := range strings.Split(strings.TrimSpace(string(out)), "\n") {
    		GOARCH := strings.Split(pair, "/")[1]
    		allGOARCH[GOARCH] = true
    	}
    
    	for _, pkgName := range pkgs {
    		if strings.Contains(pkgName, "/boring") {
    			continue
    		}
    
    		for GOARCH := range allGOARCH {
    			context := build.Context{
    				GOOS:      "linux", // darwin has custom assembly
    				GOARCH:    GOARCH,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/internal/coverage/encodemeta/encode.go

    		tmp: make([]byte, 0, 256),
    		h:   md5.New(),
    	}
    	x.stab.InitWriter()
    	x.stab.Lookup("")
    	x.pkgpath = x.stab.Lookup(pkgpath)
    	x.pkgname = x.stab.Lookup(pkgname)
    	x.modpath = x.stab.Lookup(modulepath)
    	io.WriteString(x.h, pkgpath)
    	io.WriteString(x.h, pkgname)
    	io.WriteString(x.h, modulepath)
    	return x, nil
    }
    
    func h32(x uint32, h hash.Hash, tmp []byte) {
    	tmp = tmp[:0]
    	tmp = append(tmp, 0, 0, 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 17:16:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/go/ast/resolve.go

    	var p pkgBuilder
    	p.fset = fset
    
    	// complete package scope
    	pkgName := ""
    	pkgScope := NewScope(universe)
    	for _, file := range files {
    		// package names must match
    		switch name := file.Name.Name; {
    		case pkgName == "":
    			pkgName = name
    		case name != pkgName:
    			p.errorf(file.Package, "package %s; expected %s", name, pkgName)
    			continue // ignore this file
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/stmtlines_test.go

    	rdr.Seek(0)
    	for {
    		e, err := rdr.Next()
    		must(err)
    		if e == nil {
    			break
    		}
    		if e.Tag != dwarf.TagCompileUnit {
    			continue
    		}
    		pkgname, _ := e.Val(dwarf.AttrName).(string)
    		if pkgname == "runtime" {
    			continue
    		}
    		if pkgname == "crypto/internal/nistec/fiat" {
    			continue // golang.org/issue/49372
    		}
    		if e.Val(dwarf.AttrStmtList) == nil {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/resolver.go

    				}
    
    				pkgName := NewPkgName(s.Pos(), pkg, name, imp)
    				if s.LocalPkgName != nil {
    					// in a dot-import, the dot represents the package
    					check.recordDef(s.LocalPkgName, pkgName)
    				} else {
    					check.recordImplicit(s, pkgName)
    				}
    
    				if imp.fake {
    					// match 1.17 cmd/compile (not prescribed by spec)
    					pkgName.used = true
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/vcs/vcs_test.go

    			nil,
    		},
    		// IBM DevOps Services tests
    		{
    			"hub.jazz.net/git/user1/pkgname",
    			&RepoRoot{
    				VCS:  vcsGit,
    				Repo: "https://hub.jazz.net/git/user1/pkgname",
    			},
    		},
    		{
    			"hub.jazz.net/git/user1/pkgname/submodule/submodule/submodule",
    			&RepoRoot{
    				VCS:  vcsGit,
    				Repo: "https://hub.jazz.net/git/user1/pkgname",
    			},
    		},
    		{
    			"hub.jazz.net",
    			nil,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 15:33:59 UTC 2022
    - 17K bytes
    - Viewed (0)
  7. src/go/types/resolver.go

    				}
    
    				pkgName := NewPkgName(d.spec.Pos(), pkg, name, imp)
    				if d.spec.Name != nil {
    					// in a dot-import, the dot represents the package
    					check.recordDef(d.spec.Name, pkgName)
    				} else {
    					check.recordImplicit(d.spec, pkgName)
    				}
    
    				if imp.fake {
    					// match 1.17 cmd/compile (not prescribed by spec)
    					pkgName.used = true
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. src/go/types/object.go

    	}
    	if !ea {
    		return a.pkg.path < b.pkg.path
    	}
    
    	return false
    }
    
    // A PkgName represents an imported Go package.
    // PkgNames don't have a type.
    type PkgName struct {
    	object
    	imported *Package
    	used     bool // set if the package was used
    }
    
    // NewPkgName returns a new PkgName object representing an imported package.
    // The remaining arguments set the attributes found with all Objects.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  9. src/go/internal/srcimporter/srcimporter_test.go

    func testImportPath(t *testing.T, pkgPath string) {
    	if !testenv.HasSrc() {
    		t.Skip("no source code available")
    	}
    
    	pkgName := path.Base(pkgPath)
    
    	pkg, err := importer.Import(pkgPath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if pkg.Name() != pkgName {
    		t.Errorf("got %q; want %q", pkg.Name(), pkgName)
    	}
    
    	if pkg.Path() != pkgPath {
    		t.Errorf("got %q; want %q", pkg.Path(), pkgPath)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/parser.go

    		p.expectEOL()
    
    	case "import":
    		p.next()
    		pkgname := p.parseUnquotedString()
    		pkgpath := p.parseUnquotedString()
    		p.getPkg(pkgpath, pkgname)
    		p.parseString()
    		p.expectEOL()
    
    	case "indirectimport":
    		p.next()
    		pkgname := p.parseUnquotedString()
    		pkgpath := p.parseUnquotedString()
    		p.getPkg(pkgpath, pkgname)
    		p.expectEOL()
    
    	case "types":
    		p.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top