Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 73 for pkgName (0.65 sec)

  1. src/cmd/go/internal/modindex/write.go

    		e.IntAt(e.Pos(), sourceFileOffsetPos+4*i)
    		encodeFile(e, f)
    	}
    }
    
    func encodeFile(e *encoder, f *rawFile) {
    	e.String(f.error)
    	e.String(f.parseError)
    	e.String(f.synopsis)
    	e.String(f.name)
    	e.String(f.pkgName)
    	e.Bool(f.ignoreFile)
    	e.Bool(f.binaryOnly)
    	e.String(f.cgoDirectives)
    	e.String(f.goBuildConstraint)
    
    	e.Int(len(f.plusBuildConstraints))
    	for _, s := range f.plusBuildConstraints {
    		e.String(s)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/cmd/doc/main.go

    			return pkg, arg[0:period], symbol, false
    		}
    		// See if we have the basename or tail of a package, as in json for encoding/json
    		// or ivy/value for robpike.io/ivy/value.
    		pkgName := arg[:period]
    		for {
    			path, ok := findNextPackage(pkgName)
    			if !ok {
    				break
    			}
    			if pkg, err = build.ImportDir(path, build.ImportComment); err == nil {
    				return pkg, arg[0:period], symbol, true
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/iexport.go

    //         StringSize uvarint
    //         DataSize   uvarint
    //     }
    //
    //     Strings [StringSize]byte
    //     Data    [DataSize]byte
    //
    //     MainIndex []struct{
    //         PkgPath   stringOff
    //         PkgName   stringOff
    //         PkgHeight uvarint
    //
    //         Decls []struct{
    //             Name   stringOff
    //             Offset declOff
    //         }
    //     }
    //
    //     Fingerprint [8]byte
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/dwarf.go

    			var pkgname string
    			if pnSymIdx := d.ldr.Lookup(dwarf.CUInfoPrefix+"packagename."+unit.Lib.Pkg, 0); pnSymIdx != 0 {
    				pnsData := d.ldr.Data(pnSymIdx)
    				pkgname = string(pnsData)
    			}
    			newattr(unit.DWInfo, dwarf.DW_AT_go_package_name, dwarf.DW_CLS_STRING, int64(len(pkgname)), pkgname)
    
    			// Scan all functions in this compilation unit, create
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modindex/read.go

    				*list = append(*list, name)
    			}
    			continue
    		}
    
    		pkg := tf.pkgName()
    		if pkg == "documentation" {
    			p.IgnoredGoFiles = append(p.IgnoredGoFiles, name)
    			continue
    		}
    		isTest := strings.HasSuffix(name, "_test.go")
    		isXTest := false
    		if isTest && strings.HasSuffix(tf.pkgName(), "_test") && p.Name != tf.pkgName() {
    			isXTest = true
    			pkg = pkg[:len(pkg)-len("_test")]
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/walk.go

    }
    
    func (w walker) node(n Node) {
    	if n == nil {
    		panic("nil node")
    	}
    
    	w.v = w.v.Visit(n)
    	if w.v == nil {
    		return
    	}
    
    	switch n := n.(type) {
    	// packages
    	case *File:
    		w.node(n.PkgName)
    		w.declList(n.DeclList)
    
    	// declarations
    	case *ImportDecl:
    		if n.LocalPkgName != nil {
    			w.node(n.LocalPkgName)
    		}
    		w.node(n.Path)
    
    	case *ConstDecl:
    		w.nameList(n.NameList)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		c = ir.NewSelectorExpr(base.Pos, ir.ODOT, c, lname("data"))
    		setField("name", c, i)
    
    		// Set the name of package being compiled as a unique identifier of a module.
    		// asanModulename = pkgName + "\000"
    		init.Append(typecheck.Stmt(ir.NewAssignStmt(base.Pos, asanModulename, ir.NewString(base.Pos, types.LocalPkg.Name+"\000"))))
    		c = tconv(typecheck.NodAddr(asanModulename), types.Types[types.TUNSAFEPTR])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/fmt.go

    	fmtTypeID
    	fmtTypeIDName
    )
    
    // Sym
    
    // Format implements formatting for a Sym.
    // The valid formats are:
    //
    //	%v	Go syntax: Name for symbols in the local package, PkgName.Name for imported symbols.
    //	%+v	Debug syntax: always include PkgName. prefix even for local names.
    //	%S	Short syntax: Name only, no matter what.
    func (s *Sym) Format(f fmt.State, verb rune) {
    	mode := fmtGo
    	switch verb {
    	case 'v', 'S':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  9. src/cmd/cover/cfg_test.go

    	incfg := filepath.Join(outdir, tag+"incfg.txt")
    	outcfg := filepath.Join(outdir, "outcfg.txt")
    	p := covcmd.CoverPkgConfig{
    		PkgPath:      ppath,
    		PkgName:      pname,
    		Granularity:  gran,
    		OutConfig:    outcfg,
    		EmitMetaFile: mpath,
    	}
    	data, err := json.Marshal(p)
    	if err != nil {
    		t.Fatalf("json.Marshal failed: %v", err)
    	}
    	writeFile(t, incfg, data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    		}
    	}
    	return conf.Check(f.PkgName.Value, []*syntax.File{f}, info)
    }
    
    func mustTypecheck(src string, conf *Config, info *Info) *Package {
    	pkg, err := typecheck(src, conf, info)
    	if err != nil {
    		panic(err) // so we don't need to pass *testing.T
    	}
    	return pkg
    }
    
    // pkgName extracts the package name from src, which must contain a package header.
    func pkgName(src string) string {
    	const kw = "package "
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top