- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 85 for buildtags (0.14 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
// vetLegacyFlags maps flags used by legacy vet to their corresponding // new names. The old names will continue to work. var vetLegacyFlags = map[string]string{ // Analyzer name changes "bool": "bools", "buildtags": "buildtag", "methods": "stdmethods", "rangeloops": "loopclosure", // Analyzer flags "compositewhitelist": "composites.whitelist", "printfuncs": "printf.funcs",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/doc.go
source files that are not part of this package with the current build configuration but may be part of other build configurations. The contents of these files may be read using Pass.ReadFile; see the "asmdecl" or "buildtags" analyzers for examples of loading non-Go files and reporting diagnostics against them. The ResultOf field provides the results computed by the analyzers
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
UseAllFiles bool // use files regardless of //go:build lines, file names Compiler string // compiler to assume when computing target paths BuildTags []string // build constraints to match in //go:build lines ToolTags []string // toolchain-specific build constraints ReleaseTags []string // releases the current release is compatible with
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0) -
src/cmd/fix/buildtag.go
"strings" ) func init() { register(buildtagFix) } const buildtagGoVersionCutoff = "go1.18" var buildtagFix = fix{ name: "buildtag", date: "2021-08-25", f: buildtag, 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 05:31:47 UTC 2024 - 1.2K bytes - Viewed (0) -
src/cmd/vet/testdata/buildtag/buildtag3.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains tests for the buildtag checker. //go:build good // ERRORNEXT "[+]build lines do not match //go:build condition" // +build bad package testdata var _ = ` // +build notacomment
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 20 03:54:48 UTC 2021 - 362 bytes - Viewed (0) -
src/cmd/vet/testdata/buildtag/buildtag4.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains tests for the buildtag checker. //go:build !(bad || worse) // +build !bad // +build !worse
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 20 03:54:48 UTC 2021 - 292 bytes - Viewed (0) -
src/cmd/go/internal/work/build.go
cmd.Flag.BoolVar(&cfg.BuildRace, "race", false, "") cmd.Flag.BoolVar(&cfg.BuildMSan, "msan", false, "") cmd.Flag.BoolVar(&cfg.BuildASan, "asan", false, "") cmd.Flag.Var((*tagsFlag)(&cfg.BuildContext.BuildTags), "tags", "") cmd.Flag.Var((*base.StringsFlag)(&cfg.BuildToolexec), "toolexec", "") cmd.Flag.BoolVar(&cfg.BuildTrimpath, "trimpath", false, "") cmd.Flag.BoolVar(&cfg.BuildWork, "work", false, "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 17:22:59 UTC 2024 - 33.2K bytes - Viewed (0) -
src/cmd/vet/testdata/buildtag/buildtag5.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains tests for the buildtag checker. //go:build !(bad || worse) package testdata
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 20 03:54:48 UTC 2021 - 314 bytes - Viewed (0) -
src/cmd/vet/testdata/buildtag/buildtag2.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains tests for the buildtag checker. // ERRORNEXT "possible malformed [+]build comment" // +builder // +build !ignore package testdata // ERRORNEXT "misplaced \+build comment" // +build toolate // ERRORNEXT "misplaced //go:build comment" //go:build toolate
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 20 03:54:48 UTC 2021 - 483 bytes - Viewed (0) -
src/cmd/go/internal/work/action.go
if err := CheckGOOSARCHPair(cfg.Goos, cfg.Goarch); err != nil { fmt.Fprintf(os.Stderr, "go: %v\n", err) base.SetExitStatus(2) base.Exit() } for _, tag := range cfg.BuildContext.BuildTags { if strings.Contains(tag, ",") { fmt.Fprintf(os.Stderr, "go: -tags space-separated list contains comma\n") base.SetExitStatus(2) base.Exit() } } return b }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0)