Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for ones (0.16 sec)

  1. src/cmd/go/internal/test/internal/genflags/vetflag.go

    		Usage string
    	}
    	if err := json.Unmarshal(out.Bytes(), &analysisFlags); err != nil {
    		return nil, fmt.Errorf("go vet: can't unmarshal JSON from %s -flags: %v", tool, err)
    	}
    
    	// parse the flags to figure out which ones stand for analyses
    	analyzerSet := make(map[string]bool)
    	rEnable := regexp.MustCompile("^enable .+ analysis$")
    	for _, flag := range analysisFlags {
    		if rEnable.MatchString(flag.Usage) {
    			analyzerSet[flag.Name] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/cmd/gofmt/internal.go

    		return
    	}
    
    	// If this is a declaration list, make it a source file
    	// by inserting a package clause.
    	// Insert using a ';', not a newline, so that the line numbers
    	// in psrc match the ones in src.
    	psrc := append([]byte("package p;"), src...)
    	file, err = parser.ParseFile(fset, filename, psrc, parserMode)
    	if err == nil {
    		sourceAdj = func(src []byte, indent int) []byte {
    			// Remove the package clause.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 28 14:23:08 UTC 2020
    - 5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcweb/svn.go

    	if stderr.Len() > 0 {
    		stderrFrag = "\n" + stderr.String()
    	}
    	h.logger.Printf("%v: %s%s", cmd, errFrag, stderrFrag)
    }
    
    // Close stops accepting new svn:// connections and terminates the existing
    // ones, then waits for the 'svnserve' subprocesses to complete.
    func (h *svnHandler) Close() error {
    	h.listenOnce.Do(func() {})
    	if h.s == nil {
    		return nil
    	}
    
    	var err error
    	s := <-h.s
    	s.closing = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:44:48 UTC 2022
    - 5K bytes
    - Viewed (0)
  4. src/cmd/distpack/test.go

    	{name: "**/go.mod", exclude: true},
    	{name: "**/_go.mod"},
    }
    
    func testSrc(a *Archive) {
    	test("source", a, srcRules)
    
    	// Check that no generated files slip in, even if new ones are added.
    	for _, f := range a.Files {
    		if strings.HasPrefix(path.Base(f.Name), "z") {
    			data, err := os.ReadFile(filepath.Join(goroot, strings.TrimPrefix(f.Name, "go/")))
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 22:29:19 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/nowb.go

    	// it's a lot harder to work out the argument after.
    	for _, n := range typecheck.Target.Funcs {
    		c.curfn = n
    		if c.curfn.ABIWrapper() {
    			// We only want "real" calls to these
    			// functions, not the generated ones within
    			// their own ABI wrappers.
    			continue
    		}
    		ir.Visit(n, c.findExtraCalls)
    	}
    	c.curfn = nil
    	return c
    }
    
    func (c *nowritebarrierrecChecker) findExtraCalls(nn ir.Node) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 17:29:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/gover/version.go

    	ExplicitIndirectVersion = "1.17"
    
    	// separateIndirectVersion is the Go version at which
    	// "// indirect" dependencies are added in a block separate from the direct
    	// ones. See https://golang.org/issue/45965.
    	SeparateIndirectVersion = "1.17"
    
    	// tidyGoModSumVersion is the Go version at which
    	// 'go mod tidy' preserves go.mod checksums needed to build test dependencies
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/cmd/fix/doc.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Fix finds Go programs that use old APIs and rewrites them to use
    newer ones.  After you update to a new Go release, fix helps make
    the necessary changes to your programs.
    
    Usage:
    
    	go tool fix [-r name,...] [path ...]
    
    Without an explicit path, fix reads standard input and writes the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/go/internal/workcmd/use.go

    Use fails if any remaining use directives refer to modules that
    do not exist.
    
    Use updates the go line in go.work to specify a version at least as
    new as all the go lines in the used modules, both preexisting ones
    and newly added ones. With no arguments, this update is the only
    thing that go work use does.
    
    The -r flag searches recursively for modules in the argument
    directories, and the use command operates as if each of the directories
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ir/visit.go

    //
    // Visit and Any are presented above as examples of how to use
    // DoChildren effectively, but of course, usage that fits within the
    // simplifications captured by Visit or Any will be best served
    // by directly calling the ones provided by this package.
    func DoChildren(n Node, do func(Node) bool) bool {
    	if n == nil {
    		return false
    	}
    	return n.doChildren(do)
    }
    
    // Visit visits each non-nil node x in the IR tree rooted at n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 23 14:29:16 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. src/cmd/gofmt/doc.go

    To check files for unnecessary parentheses:
    
    	gofmt -r '(a) -> a' -l *.go
    
    To remove the parentheses:
    
    	gofmt -r '(a) -> a' -w *.go
    
    To convert the package tree from explicit slice upper bounds to implicit ones:
    
    	gofmt -r 'α[β:len(α)] -> α[β:]' -w $GOROOT/src
    
    # The simplify command
    
    When invoked with -s gofmt will make the following source transformations where possible.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.2K bytes
    - Viewed (0)
Back to top