Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for gofmt (0.03 sec)

  1. pkg/controlplane/apiserver/options/options.go

    	s.Metrics.AddFlags(fss.FlagSet("metrics"))
    	logsapi.AddFlags(s.Logs, fss.FlagSet("logs"))
    	s.Traces.AddFlags(fss.FlagSet("traces"))
    
    	// Note: the weird ""+ in below lines seems to be the only way to get gofmt to
    	// arrange these text blocks sensibly. Grrr.
    	fs := fss.FlagSet("misc")
    	fs.DurationVar(&s.EventTTL, "event-ttl", s.EventTTL,
    		"Amount of time to retain events.")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/toolchain/select.go

    			// Setting pkg/tool before bin/go avoids that ordering problem.
    			// The only other tool the go command invokes is gofmt,
    			// so we set that one explicitly before handling bin (which will include bin/go).
    			allowExec(filepath.Join(dir, "pkg/tool"))
    			allowExec(filepath.Join(dir, "bin/gofmt"))
    			allowExec(filepath.Join(dir, "bin"))
    		}
    	}
    
    	srcUGoMod := filepath.Join(dir, "src/_go.mod")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. hack/update-codegen.sh

        {
            cat "${BOILERPLATE_FILENAME}"
            echo
            echo "package ${group_version##*/}"
            # Indenting here prevents the boilerplate checker from thinking this file
            # is generated - gofmt will fix the indents anyway.
            cat <<EOF
    
              // This file contains a collection of methods that can be used from go-restful to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 15:15:31 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/generate/generate.go

    	//go:generate command argument...
    
    (note: no leading spaces and no space in "//go") where command
    is the generator to be run, corresponding to an executable file
    that can be run locally. It must either be in the shell path
    (gofmt), a fully qualified path (/usr/you/bin/mytool), or a
    command alias, described below.
    
    Note that go generate does not parse the file, so lines that look
    like directives in comments or multiline strings will be treated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 19:39:24 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. build/root/Makefile

    #
    # Args:
    #   BRANCH: Branch to be passed to verify-vendor.sh script.
    #   WHAT: List of checks to run
    #
    # Example:
    #   make verify
    #   make verify BRANCH=branch_x
    #   make verify WHAT="gofmt typecheck"
    endef
    .PHONY: verify
    ifeq ($(PRINT_HELP),y)
    verify:
    	echo "$$VERIFY_HELP_INFO"
    else ifeq ($(origin KUBE_VERIFY_GIT_BRANCH), undefined)
    verify:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go

    }
    
    // AddUniversalFlags adds flags for a specific APIServer to the specified FlagSet
    func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) {
    	// Note: the weird ""+ in below lines seems to be the only way to get gofmt to
    	// arrange these text blocks sensibly. Grrr.
    
    	fs.IPVar(&s.AdvertiseAddress, "advertise-address", s.AdvertiseAddress, ""+
    		"The IP address on which to advertise the apiserver to members of the cluster. This "+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 21:53:51 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  7. src/os/exec/exec_test.go

    }
    
    func TestAbsPathExec(t *testing.T) {
    	testenv.MustHaveExec(t)
    	testenv.MustHaveGoBuild(t) // must have GOROOT/bin/gofmt, but close enough
    
    	// A simple exec of a full path should work.
    	// Go 1.22 broke this on Windows, requiring ".exe"; see #66586.
    	exe := filepath.Join(testenv.GOROOT(t), "bin/gofmt")
    	cmd := exec.Command(exe)
    	if cmd.Path != exe {
    		t.Errorf("exec.Command(%#q) set Path=%#q", exe, cmd.Path)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/main.go

    		fmt.Fprintf(w, "var framepointerReg%s = int8(%d)\n", a.name, a.framepointerreg)
    		fmt.Fprintf(w, "var linkReg%s = int8(%d)\n", a.name, a.linkreg)
    	}
    
    	// gofmt result
    	b := w.Bytes()
    	var err error
    	b, err = format.Source(b)
    	if err != nil {
    		fmt.Printf("%s\n", w.Bytes())
    		panic(err)
    	}
    
    	if err := os.WriteFile("../opGen.go", b, 0666); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  9. src/cmd/internal/src/pos.go

    	// user debugging a program; the goal is that a breakpoint set on the loop line fires both on entry
    	// and on iteration).  Proper treatment of non-gofmt input with multiple simple statements on a single
    	// line is TBD.
    	//
    	// Optimizing compilation will move instructions around, and some of these will become known-bad as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  10. src/go/token/position.go

    	//
    	// With better compiler optimizations, this may not be needed in the
    	// future, but at the moment this change improves the go/printer
    	// benchmark performance by ~30%. This has a direct impact on the
    	// speed of gofmt and thus seems worthwhile (2011-04-29).
    	// TODO(gri): Remove this when compilers have caught up.
    	i, j := 0, len(a)
    	for i < j {
    		h := int(uint(i+j) >> 1) // avoid overflow when computing h
    		// i ≤ h < j
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top