Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LazyInit ¶
type LazyInit struct {
// contains filtered or unexported fields
}
LazyInit is lazy value initialization type. It helps construct object on access and only once.
func NewLazyInit ¶
NewLazyInit creates a new lazy initialization variable. It takes a constructor function to make an object.
Click to show internal directories.
Click to hide internal directories.