Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstance ¶ added in v0.48.0
func GetInstance[T any](constructor func() T) T
GetInstance returns an existing instance of object. If it is not yet created, calls `constructor`, stores the result for future calls and returns it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.