Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for goEmbed (0.21 sec)

  1. src/go/build/read.go

    					}
    					c, c1 = c1, r.readByteNoBuf()
    				}
    				startLine = false
    
    			case '/':
    				if startLine {
    					// Try to read this as a //go:embed comment.
    					for i := range goEmbed {
    						c = r.readByteNoBuf()
    						if c != goEmbed[i] {
    							goto SkipSlashSlash
    						}
    					}
    					c = r.readByteNoBuf()
    					if c == ' ' || c == '\t' {
    						// Found one!
    						return true
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/embed/embed.go

    // Embedding one file into a string:
    //
    //	import _ "embed"
    //
    //	//go:embed hello.txt
    //	var s string
    //	print(s)
    //
    // Embedding one file into a slice of bytes:
    //
    //	import _ "embed"
    //
    //	//go:embed hello.txt
    //	var b []byte
    //	print(string(b))
    //
    // Embedded one or more files into a file system:
    //
    //	import "embed"
    //
    //	//go:embed hello.txt
    //	var f embed.FS
    //	data, _ := f.ReadFile("hello.txt")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. tests/integration/telemetry/tracing/otelcollector/tracing_test.go

    	"istio.io/istio/pkg/test/framework/resource"
    	"istio.io/istio/pkg/test/util/retry"
    	"istio.io/istio/tests/integration/telemetry/tracing"
    )
    
    //go:embed testdata/otel-tracing.yaml
    var otelTracingCfg string
    
    //go:embed testdata/otel-tracing-http.yaml
    var otelTracingHTTPCfg string
    
    //go:embed testdata/otel-tracing-res-detectors.yaml
    var otelTracingResDetectorsCfg string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 22:56:30 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. pkg/art/art.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package art
    
    import (
    	_ "embed"
    
    	"github.com/fatih/color"
    )
    
    //go:embed istio-ascii.txt
    var istioASCIIArt string
    
    func IstioArt() string {
    	return istioASCIIArt
    }
    
    func IstioColoredArt() string {
    	return color.New(color.FgHiBlue).Add(color.Bold).Sprintf(istioASCIIArt)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 29 16:30:44 UTC 2024
    - 859 bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/driver/webhtml.go

    	htmlTemplateInit.Do(func() {
    		htmlTemplates = template.New("templategroup")
    		addTemplates(htmlTemplates)
    		report.AddSourceTemplates(htmlTemplates)
    	})
    	return htmlTemplates
    }
    
    //go:embed html
    var embeddedFiles embed.FS
    
    // addTemplates adds a set of template definitions to templates.
    func addTemplates(templates *template.Template) {
    	// Load specified file.
    	loadFile := func(fname string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    	"golang.org/x/tools/go/analysis/passes/internal/analysisutil"
    	"golang.org/x/tools/go/ast/inspector"
    	"golang.org/x/tools/internal/aliases"
    	"golang.org/x/tools/internal/typeparams"
    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "stringintconv",
    	Doc:      analysisutil.MustExtractDoc(doc, "stringintconv"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/stdlib_test.go

    		"directive.go",   // tests compiler rejection of bad directive placement - ignore
    		"directive2.go",  // tests compiler rejection of bad directive placement - ignore
    		"embedfunc.go",   // tests //go:embed
    		"embedvers.go",   // tests //go:embed
    		"linkname2.go",   // types2 doesn't check validity of //go:xxx directives
    		"linkname3.go",   // types2 doesn't check validity of //go:xxx directives
    	)
    }
    
    func TestStdFixed(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    	"fmt"
    	"go/ast"
    	"go/token"
    	"go/types"
    	"regexp"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    
    	"golang.org/x/tools/go/analysis"
    	"golang.org/x/tools/go/analysis/passes/internal/analysisutil"
    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name: "tests",
    	Doc:  analysisutil.MustExtractDoc(doc, "tests"),
    	URL:  "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/tests",
    	Run:  run,
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/load/pkg.go

    	TestEmbedPatterns  []string `json:",omitempty"` // //go:embed patterns
    	TestEmbedFiles     []string `json:",omitempty"` // files matched by TestEmbedPatterns
    	XTestGoFiles       []string `json:",omitempty"` // _test.go files outside package
    	XTestImports       []string `json:",omitempty"` // imports from XTestGoFiles
    	XTestEmbedPatterns []string `json:",omitempty"` // //go:embed patterns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  10. src/go/build/build.go

    	XTestImportPos map[string][]token.Position // line information for XTestImports
    
    	// //go:embed patterns found in Go source files
    	// For example, if a source file says
    	//	//go:embed a* b.c
    	// 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
Back to top