We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I had read the guide, but not found build the singleton example.
// wire.go func InitializeFoo() *Foo { panic(wire.Build(NewFoo)) } // wire_gen.go func InitializeFoo() *Foo { return NewFoo() } // main.go func main() { foo1 := InitializeFoo() foo2 := InitializeFoo() foo1 != foo2 // How to build the singleton object? }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I had read the guide, but not found build the singleton example.
The text was updated successfully, but these errors were encountered: