Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for gofmt (0.04 sec)

  1. src/go/parser/testdata/typeset.go2

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains test cases for typeset-only constraint elements.
    // TODO(gri) gofmt once/if gofmt supports this notation.
    
    package p
    
    type (
            _[_ t] t
            _[_ ~t] t
            _[_ t|t] t
            _[_ ~t|t] t
            _[_ t|~t] t
            _[_ ~t|~t] t
    
            _[_ t, _, _ t|t] t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/mod/golang.org_toolchain_v0.0.1-go1.999testmod.openbsd-riscv64.txt

    -- .mod --
    module golang.org/toolchain
    -- .info --
    {"Version":"v0.0.1-go1.999testmod.openbsd-riscv64"}
    -- go.mod --
    module golang.org/toolchain
    -- bin/go --
    #!/bin/sh
    echo go1.999testmod here!
    -- bin/gofmt --
    echo i am unused
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:49 UTC 2023
    - 306 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/mod/golang.org_toolchain_v0.0.1-go1.999testmod.openbsd-ppc64.txt

    -- .mod --
    module golang.org/toolchain
    -- .info --
    {"Version":"v0.0.1-go1.999testmod.openbsd-ppc64"}
    -- go.mod --
    module golang.org/toolchain
    -- bin/go --
    #!/bin/sh
    echo go1.999testmod here!
    -- bin/gofmt --
    echo i am unused
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:14:41 UTC 2023
    - 302 bytes
    - Viewed (0)
  4. hack/lib/protoc.sh

    }
    
    # Formats $1/api.pb.go, adds the boilerplate comments and run gofmt on it
    # $1: Full path to the directory where the api.proto file is
    function kube::protoc::format() {
      local package=${1}
    
      # Update boilerplate for the generated file.
      cat hack/boilerplate/boilerplate.generatego.txt "${package}/api.pb.go" > tmpfile && mv tmpfile "${package}/api.pb.go"
    
      # Run gofmt to clean up the generated code.
      kube::golang::setup_env
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 20:53:13 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/cmd/fix/main.go

    	}
    	fmt.Fprintf(os.Stderr, "%s: fixed %s\n", filename, fixlog.String()[1:])
    
    	// Print AST.  We did that after each fix, so this appears
    	// redundant, but it is necessary to generate gofmt-compatible
    	// source code in a few cases. The official gofmt style is the
    	// output of the printer run on a standard AST generated by the parser,
    	// but the source we generated inside the loop above is the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. src/cmd/fix/main_test.go

    		return
    	}
    
    	outb, err := gofmtFile(file)
    	if err != nil {
    		t.Errorf("printing: %v", err)
    		return
    	}
    	if s := string(outb); in != s && mustBeGofmt {
    		t.Errorf("not gofmt-formatted.\n--- %s\n%s\n--- %s | gofmt\n%s",
    			desc, in, desc, s)
    		tdiff(t, "want", in, "have", s)
    		return
    	}
    
    	if fn == nil {
    		for _, fix := range fixes {
    			if fix.f(file) {
    				fixed = true
    			}
    		}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. src/cmd/fix/buildtag.go

    	desc: `Remove +build comments from modules using Go 1.18 or later`,
    }
    
    func buildtag(f *ast.File) bool {
    	if version.Compare(*goVersion, buildtagGoVersionCutoff) < 0 {
    		return false
    	}
    
    	// File is already gofmt-ed, so we know that if there are +build lines,
    	// they are in a comment group that starts with a //go:build line followed
    	// by a blank line. While we cannot delete comments from an AST and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. hack/make-rules/update.sh

    fi
    
    BASH_TARGETS=(
    	update-go-workspace
    	update-codegen
    	update-generated-api-compatibility-data
    	update-generated-docs
    	update-openapi-spec
    	update-gofmt
    	update-golangci-lint-config
    )
    
    for t in "${BASH_TARGETS[@]}"; do
    	echo -e "${color_yellow:?}Running ${t}${color_norm:?}"
    	if ${SILENT} ; then
    		if ! bash "${KUBE_ROOT}/hack/${t}.sh" 1> /dev/null; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 08:22:06 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/buildid.go

    // binaries. For a binary, like cmd/gofmt, there are two steps: compile
    // cmd/gofmt/*.go into main.a, and then link main.a into the gofmt binary.
    // We do not install gofmt's main.a, only the gofmt binary. Being able to
    // decide that the gofmt binary is up-to-date means computing the action ID
    // for the final link of the gofmt binary and comparing it against the
    // already-installed gofmt binary. But computing the action ID for the link
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  10. src/syscall/mkall.sh

    	exit 1
    	;;
    esac
    
    (
    	if [ -n "$mkerrors" ]; then echo "$mkerrors |gofmt >$zerrors"; fi
    	syscall_goos="syscall_$GOOS.go"
     	case "$GOOS" in
    	darwin | dragonfly | freebsd | netbsd | openbsd)
    		syscall_goos="syscall_bsd.go $syscall_goos"
     		;;
     	esac
    	if [ -n "$mksyscall" ]; then echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; fi
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 18:22:23 UTC 2023
    - 14.6K bytes
    - Viewed (0)
Back to top