Discover Packages
github.com/coder/coder/v2
coderd
util
lazy
package
Version:
v2.17.2
Opens a new window with list of versions in this module.
Published: Nov 8, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package lazy provides a lazy value implementation.
It's useful especially in global variable initialization to avoid
slowing down the program startup time.
type Value[T any ] struct {
}
New creates a new lazy value with the given load function.
func (v *Value [T]) Load() T
Source Files
¶
Click to show internal directories.
Click to hide internal directories.