Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 55 for gofmt (0.24 sec)

  1. src/go/doc/comment/print.go

    		}
    		cp.block(&out, x)
    	}
    
    	// Print one block containing all the link definitions that were used,
    	// and then a second block containing all the unused ones.
    	// This makes it easy to clean up the unused ones: gofmt and
    	// delete the final block. And it's a nice visual signal without
    	// affecting the way the comment formats for users.
    	for i := 0; i < 2; i++ {
    		used := i == 0
    		first := true
    		for _, def := range d.Links {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. src/go/printer/printer.go

    // unexported, it's also possible to modify or remove it based on
    // the evolving needs of go/format and cmd/gofmt without breaking
    // users. See discussion in CL 240683.
    const (
    	// normalizeNumbers means to canonicalize number
    	// literal prefixes and exponents while printing.
    	//
    	// This value is known in and used by go/format and cmd/gofmt.
    	// It is currently more convenient and performant for those
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top