Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for pkgName (0.16 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/cmd/cover/pkgname_test.go

    	for _, test := range tests {
    		tf.Name = test.fileName
    		td := templateData{
    			Files: []*templateFile{&tf},
    		}
    		got := td.PackageName()
    		if got != test.pkgName {
    			t.Errorf("%s: got %s want %s", test.fileName, got, test.pkgName)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 30 03:58:01 UTC 2020
    - 733 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. test/stress/parsego.go

    			// found" errors.
    			// Additionally, accept the special package name
    			// fakePkgName if we are looking at cmd documentation.
    			name := pkgName(dirpath + "/" + d.Name())
    			return name == pkgname
    		}
    		return false
    	}
    
    	// get package AST
    	pkgs, err := parser.ParseDir(token.NewFileSet(), dirpath, filter, parser.ParseComments)
    	if err != nil {
    		println("parse", dirpath, err.Error())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top