Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewWithF (0.26 sec)

  1. test/fixedbugs/issue52128.dir/b.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package b
    
    import (
    	"./a"
    )
    
    type S struct{}
    
    func (s *S) M1() a.I {
    	return a.NewWithF(s.M2)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 19:20:41 UTC 2022
    - 278 bytes
    - Viewed (0)
  2. test/fixedbugs/issue52128.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type I interface{}
    
    type F func()
    
    type s struct {
    	f F
    }
    
    func NewWithF(f F) *s {
    	return &s{f: f}
    }
    
    func NewWithFuncI(func() I) *s {
    	return &s{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 19:20:41 UTC 2022
    - 322 bytes
    - Viewed (0)
Back to top