package
Version:
v0.0.60
Opens a new window with list of versions in this module.
Published: Oct 27, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Const defines a constant cacher which is lazy-loaded.
func NewConst(load func() interface{}) *Const
NewConst returns a const cacher.
Clear clears the cached value pointer.
func (c *Const) Get() interface{}
Get returns the cached value pointer.
IsLoaded returns if the const is loaded.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.