Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for goEmbed (0.41 sec)

  1. src/cmd/go/testdata/script/list_module_when_error.txt

    env GO111MODULE=on
    
    go list -e -f {{.Module}}
    stdout '^mod.com$'
    
    -- go.mod --
    module mod.com
    
    go 1.16
    
    -- blah.go --
    package blah
    
    import _ "embed"
    
    //go:embed README.md
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 28 15:10:38 UTC 2021
    - 276 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_ignore_leading_bom.txt

    stdout '^Imports: \[embed m/hello\] EmbedFiles: \[.*file\]$'
    
    -- go.mod --
    module m
    
    go 1.16
    -- m.go --
    package main
    
    import (
    	_ "embed"
    
    	"m/hello"
    )
    
    //go:embed file
    var s string
    
    -- hello/hello.go --
    package hello
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 15 18:42:11 UTC 2021
    - 486 bytes
    - Viewed (0)
  3. pkg/ctrlz/topics/assets/assets.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package assets
    
    import (
    	"embed"
    	"html/template"
    )
    
    // FS embeds the templates
    //
    //go:embed templates/*
    var FS embed.FS
    
    func ParseTemplate(l *template.Template, name string) *template.Template {
    	b, err := FS.ReadFile(name)
    	if err != nil {
    		panic(err)
    	}
    	return template.Must(l.Parse(string(b)))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 891 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. pkg/test/datasets/validation/dataset.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package validation
    
    import "embed"
    
    // FS embeds the manifests
    //
    //go:embed dataset/*
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 03 17:06:22 UTC 2022
    - 689 bytes
    - Viewed (0)
  6. src/embed/example_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package embed_test
    
    import (
    	"embed"
    	"log"
    	"net/http"
    )
    
    //go:embed internal/embedtest/testdata/*.txt
    var content embed.FS
    
    func Example() {
    	mux := http.NewServeMux()
    	mux.Handle("/", http.FileServer(http.FS(content)))
    	err := http.ListenAndServe(":8080", mux)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:35:13 UTC 2023
    - 464 bytes
    - Viewed (0)
  7. manifests/manifest.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package manifests
    
    import (
    	"embed"
    	"io/fs"
    	"os"
    )
    
    // FS embeds the manifests
    //
    //go:embed all:charts/* profiles/*
    var FS embed.FS
    
    // BuiltinOrDir returns a FS for the provided directory. If no directory is passed, the compiled in
    // FS will be used
    func BuiltinOrDir(dir string) fs.FS {
    	if dir == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 15 02:30:16 UTC 2023
    - 935 bytes
    - Viewed (0)
  8. pkg/ctrlz/assets/assets.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package assets
    
    import (
    	"embed"
    	"html/template"
    )
    
    // FS embeds the templates
    //
    //go:embed templates/* static/*
    var FS embed.FS
    
    func ParseTemplate(l *template.Template, name string) *template.Template {
    	b, err := FS.ReadFile(name)
    	if err != nil {
    		panic(err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 900 bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/defers/defers.go

    	"golang.org/x/tools/go/analysis/passes/inspect"
    	"golang.org/x/tools/go/analysis/passes/internal/analysisutil"
    	"golang.org/x/tools/go/ast/inspector"
    	"golang.org/x/tools/go/types/typeutil"
    )
    
    //go:embed doc.go
    var doc string
    
    // Analyzer is the defers analyzer.
    var Analyzer = &analysis.Analyzer{
    	Name:     "defers",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. operator/pkg/helmreconciler/prune_test.go

    	"istio.io/istio/operator/pkg/util/clog"
    	"istio.io/istio/operator/pkg/util/progress"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    var (
    	//go:embed testdata/iop-test-gw-1.yaml
    	iopTestGwData1 []byte
    	//go:embed testdata/iop-test-gw-2.yaml
    	iopTestGwData2 []byte
    )
    
    func applyResourcesIntoCluster(t *testing.T, h *HelmReconciler, manifestMap name.ManifestMap) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 12:13:37 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top