MCPcopy Index your code
hub / github.com/coder/coder / New

Function New

coderd/util/lazy/value.go:26–28  ·  view source on GitHub ↗

New creates a new lazy value with the given load function.

(fn func() T)

Source from the content-addressed store, hash-verified

24
25// New creates a new lazy value with the given load function.
26func New[T any](fn func() T) *Value[T] {
27 return &Value[T]{fn: fn}
28}

Callers 1

userpassword.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected