Singleton annotates a provider function to indicate that the provider will only be called once, and that its return value will be used for all subsequent retrievals of the given type. count := 0 injector.Bind(Singleton(func() int { count++ return 123 })) injector.Get(reflect.TypeOf(1)
(v interface{})
source not stored for this graph (policy: none)
no outgoing calls