proxy.golang.org : github.com/ericlagergren/lazy
Package lazy implements lazily initialized variables. To cut down on binary size and speed up init time, a fairly common pattern in Go is something similar to the following (Almost every use of 'sync.Once' in the stdlib is to implement this pattern.) I'm lazy and we have generics, so why not ab^H^Huse them?
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/ericlagergren/lazy
Keywords:
generics
, golang
, indeed
, useful
, very
License: BSD-3-Clause
Latest release: over 2 years ago
First release: over 2 years ago
Namespace: github.com/ericlagergren
Stars: 0 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago