- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for gofmt (0.3 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/syscall/rlimit.go
// (limited by the size of fd_set). // // Go does not use select, so it should not be subject to these limits. // On some systems the limit is 256, which is very easy to run into, // even in simple programs like gofmt when they parallelize walking // a file tree. // // After a long discussion on go.dev/issue/46279, we decided the // best approach was for Go to raise the limit unconditionally for itself,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:57 UTC 2024 - 1.6K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/11-language-change.yml
- type: input id: go-toolchain attributes: label: Changes to Go ToolChain description: "How many tools (such as vet, gopls, gofmt, goimports, etc.) would be affected? " validations: required: false - type: input id: perf-costs attributes: label: Performance Costs
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 22 20:49:24 UTC 2023 - 4.7K bytes - Viewed (0) -
src/internal/types/testdata/spec/range.go
func f7(func(int) MyBool) {} func f8(func(MyInt, MyString) MyBool) {} func test() { // TODO: Would be nice to 'for range T.M' and 'for range (*T).PM' directly, // but there is no gofmt-friendly way to write the error pattern in the right place. m1 := T.M for range m1 /* ERROR "cannot range over m1 (variable of type func(T)): func must be func(yield func(...) bool): argument is not func" */ { } m2 := (*T).PM
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 04:31:42 UTC 2024 - 3.5K bytes - Viewed (0)