MCPcopy Create free account
hub / github.com/golobby/container / Singleton

Function Singleton

global.go:7–9  ·  view source on GitHub ↗

Singleton calls the same method of the global concrete.

(resolver interface{})

Source from the content-addressed store, hash-verified

5
6// Singleton calls the same method of the global concrete.
7func Singleton(resolver interface{}) error {
8 return Global.Singleton(resolver)
9}
10
11// SingletonLazy calls the same method of the global concrete.
12func SingletonLazy(resolver interface{}) error {

Callers

nothing calls this directly

Calls 1

SingletonMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…