Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 116 for gofmt (0.04 sec)

  1. src/cmd/go/testdata/mod/golang.org_toolchain_v0.0.1-go1.999testmod.plan9-amd64.txt

    -- .mod --
    module golang.org/toolchain
    -- .info --
    {"Version":"v0.0.1-go1.999testmod.plan9-amd64"}
    -- go.mod --
    module golang.org/toolchain
    -- bin/go --
    #!/bin/rc
    echo go1.999testmod here!
    -- bin/gofmt --
    echo i am unused
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 13:19:02 UTC 2023
    - 298 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/mod/golang.org_toolchain_v0.0.1-go1.999testmod.solaris-amd64.txt

    -- .mod --
    module golang.org/toolchain
    -- .info --
    {"Version":"v0.0.1-go1.999testmod.solaris-amd64"}
    -- 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: Tue Apr 18 13:19:02 UTC 2023
    - 302 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/go/internal/test/genflags.go

    	}
    	buf := bytes.NewBuffer(nil)
    	if err := t.Execute(buf, tData); err != nil {
    		return err
    	}
    
    	f, err := os.Create("flagdefs.go")
    	if err != nil {
    		return err
    	}
    
    	cmd := exec.Command("gofmt")
    	cmd.Stdin = buf
    	cmd.Stdout = f
    	cmd.Stderr = os.Stderr
    	cmdErr := cmd.Run()
    
    	if err := f.Close(); err != nil {
    		return err
    	}
    	if cmdErr != nil {
    		os.Remove(f.Name())
    		return cmdErr
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 09 13:37:58 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/cmd/go/help_test.go

    	}
    
    	const srcPath = `alldocs.go`
    	old, err := os.ReadFile(srcPath)
    	if err != nil {
    		t.Fatalf("error reading %s: %v", srcPath, err)
    	}
    	diff := diff.Diff(srcPath, old, "go help documentation | gofmt", alldocs)
    	if diff == nil {
    		t.Logf("%s is up to date.", srcPath)
    		return
    	}
    
    	if *fixDocs {
    		if err := os.WriteFile(srcPath, alldocs, 0666); err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 28 15:45:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go

    				isMapIndex(pass.TypesInfo, lhs) {
    				continue // expressions may not be equal
    			}
    			if reflect.TypeOf(lhs) != reflect.TypeOf(rhs) {
    				continue // short-circuit the heavy-weight gofmt check
    			}
    			le := analysisutil.Format(pass.Fset, lhs)
    			re := analysisutil.Format(pass.Fset, rhs)
    			if le == re {
    				pass.Report(analysis.Diagnostic{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top