Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 226 for Embed0 (0.29 sec)

  1. test/interface/embed1.dir/embed0.go

    Russ Cox <******@****.***> 1646781395 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:31:58 UTC 2022
    - 411 bytes
    - Viewed (0)
  2. test/interface/embed3.dir/embed0.go

    Dmitry Vyukov <******@****.***> 1571748917 +0200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 06 09:09:59 UTC 2019
    - 305 bytes
    - Viewed (0)
  3. test/interface/embed1.dir/embed1.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that embedded interface types can have local methods.
    
    package main
    
    import "./embed0"
    
    type T int
    func (t T) m() {}
    
    type I interface { m() }
    type J interface { I }
    
    type PI interface { p.I }
    type PJ interface { p.J }
    
    func main() {
    	var i I
    	var j J
    	var t T
    	i = t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 10 20:35:27 UTC 2012
    - 589 bytes
    - Viewed (0)
  4. src/encoding/json/decode_test.go

    	Level1e int `json:"x"` // annihilated by Embed0a.Level1e
    }
    
    type Embed0a struct {
    	Level1a int `json:"Level1a,omitempty"`
    	Level1b int `json:"LEVEL1B,omitempty"`
    	Level1c int `json:"-"`
    	Level1d int // annihilated by Embed0's Level1d
    	Level1f int `json:"x"` // annihilated by Embed0's Level1e
    }
    
    type Embed0b Embed0
    
    type Embed0c Embed0
    
    type Embed0p struct {
    	image.Point
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  5. test/interface/embed3.dir/embed1.go

    // Copyright 2019 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 main
    
    import "./embed0"
    
    type X1 struct{}
    
    func (X1) Foo() {}
    
    type X2 struct{}
    
    func (X2) foo() {}
    
    type X3 struct{}
    
    func (X3) foo(int) {}
    
    type X4 struct{ p.M1 }
    
    type X5 struct{ p.M1 }
    
    func (X5) foo(int) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 06 09:09:59 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  6. test/fixedbugs/notinheap2.go

    // Heap allocation is not okay.
    
    var y *nih
    var y2 *struct{ x nih }
    var y3 *[1]nih
    var z []nih
    var w []nih
    var n int
    var sink interface{}
    
    type embed1 struct { // implicitly notinheap
    	x nih
    }
    
    type embed2 [1]nih // implicitly notinheap
    
    type embed3 struct { // implicitly notinheap
    	x [1]nih
    }
    
    // Type aliases inherit the go:notinheap-ness of the type they alias.
    type nihAlias = nih
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 17:46:15 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/embed.txt

    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
    
    import "embed"
    
    //go:embed all:t
    var X embed.FS
    
    -- x.txt --
    hello
    
    -- y.txt --
    -- z.txt --
    -- x.txt2 --
    not hello
    
    -- use/use.go --
    package use
    
    import _ "m"
    -- go.mod --
    module m
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 18:03:59 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/staticdata/embed.go

    	have := make(map[string]bool)
    	var list []string
    	for _, e := range *v.Embed {
    		for _, pattern := range e.Patterns {
    			files, ok := base.Flag.Cfg.Embed.Patterns[pattern]
    			if !ok {
    				base.ErrorfAt(e.Pos, 0, "invalid go:embed: build system did not map pattern: %s", pattern)
    			}
    			for _, file := range files {
    				if base.Flag.Cfg.Embed.Files[file] == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 10 18:22:02 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. src/time/embed.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 is used with build tag timetzdata to embed tzdata into
    // the binary.
    
    //go:build timetzdata
    
    package time
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 304 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_vendor_embed.txt

    cmp vendor/example.com/a/subdir/embed.txt a/subdir/embed.txt
    cmp vendor/example.com/a/subdir/test/embed.txt a/subdir/test/embed.txt
    cmp vendor/example.com/a/subdir/test/xtest/embed.txt a/subdir/test/xtest/embed.txt
    
    cd broken_no_matching_files
    ! go mod vendor
    stderr '^go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found$'
    go mod vendor -e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:14:55 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top