Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 116 for gofmt (0.11 sec)

  1. hack/tools/go.mod

    	github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect
    	github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe // indirect
    	github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e // indirect
    	github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 // indirect
    	github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca // indirect
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/gen/constFoldGen.go

    				} else {
    					fmt.Fprintf(w, "\t\tif x >= y { t.Errorf(\"%%d >= %%d\", x, y) }\n")
    				}
    				fmt.Fprintf(w, "\t}\n")
    			}
    		}
    		fmt.Fprintf(w, "}\n")
    	}
    
    	// gofmt result
    	b := w.Bytes()
    	src, err := format.Source(b)
    	if err != nil {
    		fmt.Printf("%s\n", b)
    		panic(err)
    	}
    
    	// write to file
    	err = os.WriteFile("../../constFold_test.go", src, 0666)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/alldocs.go

    //
    // See also: go fmt, go vet.
    //
    // # Gofmt (reformat) package sources
    //
    // Usage:
    //
    //	go fmt [-n] [-x] [packages]
    //
    // Fmt runs the command 'gofmt -l -w' on the packages named
    // by the import paths. It prints the names of the files that are modified.
    //
    // For more about gofmt, see 'go doc cmd/gofmt'.
    // For more about specifying packages, see 'go help packages'.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top