- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for EmbedPatterns (1.24 sec)
-
src/cmd/go/testdata/script/list_json_fields.txt
# Test -json=<field> with Deps outputs the Deps field. go list -json=Deps stdout '"Deps": \[' stdout '"errors",' # Test -json=<field> with *EmbedPatterns outputs embed patterns. cd embed go list -json=EmbedPatterns,TestEmbedPatterns,XTestEmbedPatterns stdout '"EmbedPatterns": \[' stdout '"TestEmbedPatterns": \[' stdout '"XTestEmbedPatterns": \[' # Test -json=<field> with *EmbedFiles fails due to broken file reference.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 15:24:16 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/vendor.go
} } var embedPatterns []string if gover.Compare(modload.MainModules.GoVersion(), "1.22") >= 0 { embedPatterns = bp.EmbedPatterns } else { // Maintain the behavior of https://github.com/golang/go/issues/63473 // so that we continue to agree with older versions of the go command // about the contents of vendor directories in existing modules
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 14:19:59 UTC 2024 - 14.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/embed.txt
# go list shows patterns and files go list -f '{{.EmbedPatterns}}' stdout '\[x\*t\*t\]' go list -f '{{.EmbedFiles}}' stdout '\[x.txt\]' go list -test -f '{{.TestEmbedPatterns}}' stdout '\[y\*t\*t\]' go list -test -f '{{.TestEmbedFiles}}' stdout '\[y.txt\]' go list -test -f '{{.XTestEmbedPatterns}}' stdout '\[z\*t\*t\]' go list -test -f '{{.XTestEmbedFiles}}' stdout '\[z.txt\]' # build embeds x.txt go build -x stderr 'x.txt'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 09 18:03:59 UTC 2021 - 2.3K bytes - Viewed (0) -
src/embed/embed.go
// // template.ParseFS(content, "*.tmpl") // // # Tools // // To support tools that analyze Go packages, the patterns found in //go:embed lines // are available in “go list” output. See the EmbedPatterns, TestEmbedPatterns, // and XTestEmbedPatterns fields in the “go help list” output. package embed import ( "errors" "internal/bytealg" "internal/stringslite" "io" "io/fs" "time" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:42:51 UTC 2024 - 13.5K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
XTestGoFiles []string // _test.go files outside package // Embedded files EmbedPatterns []string // //go:embed patterns EmbedFiles []string // files matched by EmbedPatterns TestEmbedPatterns []string // //go:embed patterns in TestGoFiles TestEmbedFiles []string // files matched by TestEmbedPatterns
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/go/build/build.go
// then the list will contain those two strings as separate entries. // (See package embed for more details about //go:embed.) EmbedPatterns []string // patterns from GoFiles, CgoFiles EmbedPatternPos map[string][]token.Position // line information for EmbedPatterns TestEmbedPatterns []string // patterns from TestGoFiles
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
SysoFiles []string `json:",omitempty"` // .syso system object files added to package // Embedded files EmbedPatterns []string `json:",omitempty"` // //go:embed patterns EmbedFiles []string `json:",omitempty"` // files matched by EmbedPatterns // Cgo directives CgoCFLAGS []string `json:",omitempty"` // cgo: flags for C compiler
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
embedMap[e.pattern] = append(embedMap[e.pattern], e.position) } } if directives != nil { *directives = append(*directives, tf.directives()...) } } p.EmbedPatterns, p.EmbedPatternPos = cleanDecls(embedPos) p.TestEmbedPatterns, p.TestEmbedPatternPos = cleanDecls(testEmbedPos) p.XTestEmbedPatterns, p.XTestEmbedPatternPos = cleanDecls(xTestEmbedPos)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/go/alldocs.go
// TestGoFiles []string // _test.go files in package // XTestGoFiles []string // _test.go files outside package // // // Embedded files // EmbedPatterns []string // //go:embed patterns // EmbedFiles []string // files matched by EmbedPatterns // TestEmbedPatterns []string // //go:embed patterns in TestGoFiles // TestEmbedFiles []string // files matched by TestEmbedPatterns
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Package.ConflictDir", Field, 2}, {"Package.Dir", Field, 0}, {"Package.Directives", Field, 21}, {"Package.Doc", Field, 0}, {"Package.EmbedPatternPos", Field, 16}, {"Package.EmbedPatterns", Field, 16}, {"Package.FFiles", Field, 7}, {"Package.GoFiles", Field, 0}, {"Package.Goroot", Field, 0}, {"Package.HFiles", Field, 0}, {"Package.IgnoredGoFiles", Field, 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)