1// Copyright 2022 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package a
6
7type I interface{}
8
9type F func()
10
11type s struct {
12	f F
13}
14
15func NewWithF(f F) *s {
16	return &s{f: f}
17}
18
19func NewWithFuncI(func() I) *s {
20	return &s{}
21}
22