Go - lazy initialized by sync.Once Ex. sync.Once.Do Can code "loadHeavyOnce everytime before read the variable", it will be executed once actually. Share on X Facebook LinkedIn Bluesky Previous Next