Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for pkgdep (0.1 sec)

  1. src/go/doc/comment_test.go

    	"testing"
    )
    
    func TestComment(t *testing.T) {
    	fset := token.NewFileSet()
    	pkgs, err := parser.ParseDir(fset, "testdata/pkgdoc", nil, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if pkgs["pkgdoc"] == nil {
    		t.Fatal("missing package pkgdoc")
    	}
    	pkg := New(pkgs["pkgdoc"], "testdata/pkgdoc", 0)
    
    	var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 06:33:18 UTC 2022
    - 3K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/report/package.go

    import "regexp"
    
    // pkgRE extracts package name, It looks for the first "." or "::" that occurs
    // after the last "/". (Searching after the last / allows us to correctly handle
    // names that look like "some.url.com/foo.bar".)
    var pkgRE = regexp.MustCompile(`^((.*/)?[\w\d_]+)(\.|::)([^/]*)$`)
    
    // packageName returns the package name of the named symbol, or "" if not found.
    func packageName(name string) string {
    	m := pkgRE.FindStringSubmatch(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 512 bytes
    - Viewed (0)
  3. src/go/internal/gccgoimporter/gccgoinstallation_test.go

    	// Ensure we don't regress the number of packages we can parse. First import
    	// all packages into the same map and then each individually.
    	pkgMap := make(map[string]*types.Package)
    	for _, pkg := range importablePackages {
    		_, err = imp(pkgMap, pkg, ".", nil)
    		if err != nil {
    			t.Error(err)
    		}
    	}
    
    	for _, pkg := range importablePackages {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 21 02:25:41 UTC 2021
    - 4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/read.go

    // located at filesystem path pkgdir.
    func dirHash(modroot, pkgdir string) (cache.ActionID, error) {
    	h := cache.NewHash("moduleIndex")
    	fmt.Fprintf(h, "modroot %s\n", modroot)
    	fmt.Fprintf(h, "package %s %s %v\n", runtime.Version(), indexVersion, pkgdir)
    	entries, err := fsys.ReadDir(pkgdir)
    	if err != nil {
    		// pkgdir might not be a directory. give up on hashing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. src/runtime/race/output_test.go

    	"fmt"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"regexp"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    func TestOutput(t *testing.T) {
    	pkgdir := t.TempDir()
    	out, err := exec.Command(testenv.GoToolPath(t), "install", "-race", "-pkgdir="+pkgdir, "testing").CombinedOutput()
    	if err != nil {
    		t.Fatalf("go install -race: %v\n%s", err, out)
    	}
    
    	for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 20:44:25 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  6. src/go/doc/testdata/pkgdoc/doc.go

    // Copyright 2022 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 pkgdoc
    
    import (
    	crand "crypto/rand"
    	"math/rand"
    )
    
    type T int
    
    type U int
    
    func (T) M() {}
    
    var _ = rand.Int
    var _ = crand.Reader
    
    type G[T any] struct{ x T }
    
    func (g G[T]) M1() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 06:33:18 UTC 2022
    - 376 bytes
    - Viewed (0)
  7. misc/chrome/gophertool/gopher.js

    var numericRE = /^\d+$/;
    var commitRE = /^(?:\d+:)?([0-9a-f]{6,40})$/; // e.g "8486:ab29d2698a47" or "ab29d2698a47"
    var gerritChangeIdRE = /^I[0-9a-f]{4,40}$/; // e.g. Id69c00d908d18151486007ec03da5495b34b05f5
    var pkgRE = /^[a-z0-9_\/]+$/;
    
    function urlForInput(t) {
        if (!t) {
            return null;
        }
    
        if (numericRE.test(t)) {
            if (t < 150000) {
                // We could use the golang.org/cl/ handler here, but
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 11 14:36:33 UTC 2015
    - 1.2K bytes
    - Viewed (0)
  8. src/internal/coverage/cfile/emit.go

    		return fmt.Errorf("error: meta-data not available (binary not built with -cover?)")
    	}
    
    	// Ask the runtime for the list of coverage counter symbols.
    	pm := rtcov.Meta.PkgMap
    	s := &emitState{
    		counterlist: cl,
    		pkgmap:      pm,
    		outdir:      outdir,
    		debug:       os.Getenv("GOCOVERDEBUG") != "",
    	}
    
    	// Open output file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. src/go/internal/gccgoimporter/importer.go

    	for _, spath := range searchpaths {
    		pkgfullpath := filepath.Join(spath, pkgpath)
    		pkgdir, name := filepath.Split(pkgfullpath)
    
    		for _, filepath := range [...]string{
    			pkgfullpath,
    			pkgfullpath + ".gox",
    			pkgdir + "lib" + name + ".so",
    			pkgdir + "lib" + name + ".a",
    			pkgfullpath + ".o",
    		} {
    			fi, err := os.Stat(filepath)
    			if err == nil && !fi.IsDir() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  10. src/debug/buildinfo/buildinfo_test.go

    		}
    		return outPath
    	}
    
    	buildWithGOPATH := func(t *testing.T, goos, goarch, buildmode string) string {
    		gopathDir := t.TempDir()
    		pkgDir := filepath.Join(gopathDir, "src/example.com/m")
    		if err := os.MkdirAll(pkgDir, 0777); err != nil {
    			t.Fatal(err)
    		}
    		helloPath := filepath.Join(pkgDir, "hello.go")
    		helloData := []byte("package main\nfunc main() {}\n")
    		if err := os.WriteFile(helloPath, helloData, 0666); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top