Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for pkgName (0.18 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/internal/reflectlite/reflect_mirror_test.go

    				}
    			}
    		}
    	}
    	return v
    }
    
    func loadTypes(path, pkgName string, v visitor) {
    	fset := token.NewFileSet()
    
    	filter := func(fi fs.FileInfo) bool {
    		return strings.HasSuffix(fi.Name(), ".go")
    	}
    	pkgs, err := parser.ParseDir(fset, path, filter, 0)
    	if err != nil {
    		panic(err)
    	}
    
    	pkg := pkgs[pkgName]
    
    	for _, f := range pkg.Files {
    		ast.Walk(v, f)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/ld.go

    		case "modinfo":
    			s, err := strconv.Unquote(args)
    			if err != nil {
    				log.Fatalf("%s:%d: invalid modinfo: %v", file, lineNum, err)
    			}
    			addstrdata1(ctxt, "runtime.modinfo="+s)
    		}
    	}
    }
    
    func pkgname(ctxt *Link, lib string) string {
    	return path.Clean(lib)
    }
    
    func findlib(ctxt *Link, lib string) (string, bool) {
    	name := path.Clean(lib)
    
    	var pname string
    	isshlib := false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    		return false
    	}
    	switch sel.Sel.Name {
    	case "WithCancel", "WithTimeout", "WithDeadline":
    	default:
    		return false
    	}
    	if x, ok := sel.X.(*ast.Ident); ok {
    		if pkgname, ok := info.Uses[x].(*types.PkgName); ok {
    			return pkgname.Imported().Path() == contextPackage
    		}
    		// Import failed, so we can't check package path.
    		// Just check the local package name (heuristic).
    		return x.Name == "context"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. src/cmd/internal/cov/covcmd/cmddefs.go

    	// File into which cmd/cover should emit summary info
    	// when instrumentation is complete.
    	OutConfig string
    
    	// Import path for the package being instrumented.
    	PkgPath string
    
    	// Package name.
    	PkgName string
    
    	// Instrumentation granularity: one of "perfunc" or "perblock" (default)
    	Granularity string
    
    	// Module path for this package (empty if no go.mod in use)
    	ModulePath string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 16:13:15 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modindex/scan.go

    type rawFile struct {
    	error      string
    	parseError string
    
    	name                 string
    	synopsis             string // doc.Synopsis of package comment... Compute synopsis on all of these?
    	pkgName              string
    	ignoreFile           bool   // starts with _ or . or should otherwise always be ignored
    	binaryOnly           bool   // cannot be rebuilt from source (has //go:binary-only-package comment)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/go/types/resolver_test.go

    					obj := uses[x]
    					if obj == nil {
    						t.Errorf("%s: unresolved qualified identifier %s", fset.Position(x.Pos()), x.Name)
    						return false
    					}
    					if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil {
    						t.Errorf("%s: unresolved selector %s", fset.Position(s.Sel.Pos()), s.Sel.Name)
    						return false
    					}
    					return false
    				}
    				return true
    			}
    			return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/nodes.go

    func (*node) aNode()           {}
    
    // ----------------------------------------------------------------------------
    // Files
    
    // package PkgName; DeclList[0], DeclList[1], ...
    type File struct {
    	Pragma    Pragma
    	PkgName   *Name
    	DeclList  []Decl
    	EOF       Pos
    	GoVersion string
    	node
    }
    
    // ----------------------------------------------------------------------------
    // Declarations
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top