Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for fnc (0.06 sec)

  1. test/typeparam/issue48185b.dir/a.go

    }
    type typedArshaler[Options, Coder any] struct {
    	typ reflect.Type
    	fnc func(Options, *Coder, addressableValue) error
    }
    
    type UnmarshalOptions1 struct {
    	// Unmarshalers is a list of type-specific unmarshalers to use.
    	Unmarshalers *arshalers[UnmarshalOptions1, Decoder1]
    }
    
    type Decoder1 struct {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 07 20:37:05 UTC 2021
    - 1K bytes
    - Viewed (0)
  2. test/typeparam/issue50437.dir/a.go

    }
    
    type arshaler struct {
    	marshal func(MarshalOptions) error
    }
    
    type typedArshalers[Options any] struct {
    	m M
    }
    
    func (a *typedArshalers[Options]) lookup(fnc func(Options) error) (func(Options) error, bool) {
    	a.m.Load(nil)
    	return fnc, false
    }
    
    type M struct {}
    
    func (m *M) Load(key any) (value any, ok bool) {
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 17:55:52 UTC 2022
    - 935 bytes
    - Viewed (0)
  3. test/func5.go

    func add(x, y int) int {
    	return x + y
    }
    
    func fn() func(int, int) int {
    	return f
    }
    
    var fc func(int, int, chan int)
    
    func addc(x, y int, c chan int) {
    	c <- x+y
    }
    
    func fnc() func(int, int, chan int) {
    	return fc
    }
    
    func three(x int) {
    	if x != 3 {
    		println("wrong val", x)
    		panic("fail")
    	}
    }
    
    var notmain func()
    
    func emptyresults() {}
    func noresults()    {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/gen/arithConstGen.go

    	fmt.Fprintf(w, "package main;\n")
    	fmt.Fprintf(w, "import \"testing\"\n")
    
    	fncCnst1 := template.Must(template.New("fnc").Parse(
    		`//go:noinline
    func {{.Name}}_{{.Type_}}_{{.FNumber}}(a {{.Type_}}) {{.Type_}} { return a {{.Symbol}} {{.Number}} }
    `))
    	fncCnst2 := template.Must(template.New("fnc").Parse(
    		`//go:noinline
    func {{.Name}}_{{.FNumber}}_{{.Type_}}(a {{.Type_}}) {{.Type_}} { return {{.Number}} {{.Symbol}} a }
    `))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.3K bytes
    - Viewed (0)
Back to top