Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for goEmbed (0.15 sec)

  1. src/embed/internal/embedtest/embed_test.go

    		t.Errorf("in uninitialized embed.FS, . is not a directory")
    	}
    }
    
    var (
    	//go:embed "testdata/hello.txt"
    	helloT []T
    	//go:embed "testdata/hello.txt"
    	helloUint8 []uint8
    	//go:embed "testdata/hello.txt"
    	helloEUint8 []EmbedUint8
    	//go:embed "testdata/hello.txt"
    	helloBytes EmbedBytes
    	//go:embed "testdata/hello.txt"
    	helloString EmbedString
    )
    
    type T byte
    type EmbedUint8 uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 20:10:16 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. src/go/build/read_test.go

    	},
    	{
    		"package p\nimport \"embed\"\nvar i int\n//go:embed x y z\nvar files embed.FS",
    		`test:4:12:x
    		 test:4:14:y
    		 test:4:16:z`,
    	},
    	{
    		"package p\nimport \"embed\"\nvar i int\n//go:embed x \"\\x79\" `z`\nvar files embed.FS",
    		`test:4:12:x
    		 test:4:14:y
    		 test:4:21:z`,
    	},
    	{
    		"package p\nimport \"embed\"\nvar i int\n//go:embed x y\n//go:embed z\nvar files embed.FS",
    		`test:4:12:x
    		 test:4:14:y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_vendor_embed.txt

    package a
    
    import _ "embed"
    
    //go:embed samedir_embed.txt
    var sameDir string
    
    //go:embed subdir/embed.txt
    var subDir string
    
    func Str() string {
    	return sameDir + subDir
    }
    -- a/a_test.go --
    package a
    
    import _ "embed"
    
    //go:embed subdir/test/embed.txt
    var subderTest string
    -- a/a_x_test.go --
    package a_test
    
    import _ "embed"
    
    //go:embed subdir/test/xtest/embed.txt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:14:55 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. test/fixedbugs/issue48230.go

    // errorcheck
    
    // Copyright 2021 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.
    
    package p
    
    //go:embed issue48230.go // ERROR `go:embed only allowed in Go files that import "embed"`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 15 01:35:56 UTC 2021
    - 289 bytes
    - Viewed (0)
  5. test/embedvers.go

    // Copyright 2021 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.
    
    package p
    
    import _ "embed"
    
    //go:embed x.txt // ERROR "go:embed requires go1.16 or later"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 19 20:07:52 UTC 2021
    - 292 bytes
    - Viewed (0)
  6. pkg/config/schema/codegen/collections.go

    	"istio.io/istio/pkg/util/sets"
    )
    
    //go:embed templates/gvk.go.tmpl
    var gvkTemplate string
    
    //go:embed templates/gvr.go.tmpl
    var gvrTemplate string
    
    //go:embed templates/crdclient.go.tmpl
    var crdclientTemplate string
    
    //go:embed templates/types.go.tmpl
    var typesTemplate string
    
    //go:embed templates/clients.go.tmpl
    var clientsTemplate string
    
    //go:embed templates/kind.go.tmpl
    var kindTemplate string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 07:19:43 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. test/embedfunc.go

    // Copyright 2021 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.
    
    package p
    
    import _ "embed"
    
    func f() {
    	//go:embed x.txt // ERROR "go:embed cannot apply to var inside func"
    	var x string
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 19 20:07:52 UTC 2021
    - 308 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/embed.txt

    go build -x
    
    -- x.go --
    package p
    
    import "embed"
    
    //go:embed x*t*t
    var X embed.FS
    
    -- x_test.go --
    package p
    
    import "embed"
    
    //go:embed y*t*t
    var Y string
    
    -- x_x_test.go --
    package p_test
    
    import "embed"
    
    //go:embed z*t*t
    var Z string
    
    -- x.go2 --
    package p
    
    import "embed"
    
    //go:embed *t
    var X embed.FS
    
    -- x.go3 --
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 18:03:59 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/embed_fmt.txt

    cmp xnofmt.go xfmt.ref
    ! go build xnofmt.go
    stderr 'xnofmt.go:5:12: pattern missing.txt: no matching files found'
    
    -- xnofmt.go --
    package p
    
    import "embed"
    
    //go:embed missing.txt
    var X  embed.FS
    -- xfmt.ref --
    package p
    
    import "embed"
    
    //go:embed missing.txt
    var X embed.FS
    -- go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 19 20:58:35 UTC 2021
    - 348 bytes
    - Viewed (0)
  10. src/embed/internal/embedtest/embedx_test.go

    	concurrency2 = concurrency
    	glass2       = glass
    	sbig2        = sbig
    	bbig2        = bbig
    )
    
    //go:embed testdata/*.txt
    var global embed.FS
    
    //go:embed c*txt
    var concurrency string
    
    //go:embed testdata/g*.txt
    var glass []byte
    
    //go:embed testdata/ascii.txt
    var sbig string
    
    //go:embed testdata/ascii.txt
    var bbig []byte
    
    func testFiles(t *testing.T, f embed.FS, name, data string) {
    	t.Helper()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 15 20:37:17 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top