TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A whirlwind tour of Go’s runtime environment variables

142 pointsby spaceyover 9 years ago

3 comments

thrownaway2424over 9 years ago
They should let this author commit changes to the runtime package docs, because this explanation of GOMAXPROCS is much more clear than the official docs.<p>This article: &quot;the number of CPUs (whatever your operating system considers to be a CPU) visible to the program at startup.&quot;<p>Official docs: &quot;The number of logical CPUs on the local machine can be queried with NumCPU.&quot; and &quot;NumCPU returns the number of logical CPUs usable by the current process.&quot;<p>The problem with the official docs is they don&#x27;t mention that the value of NumCPU is locked in at startup and never changes.
评论 #10645246 未加载
评论 #10645262 未加载
ZoFover 9 years ago
Site&#x27;s down for me.<p><a href="http:&#x2F;&#x2F;webcache.googleusercontent.com&#x2F;search?q=cache:OXupz2ZeSOAJ:dave.cheney.net&#x2F;2015&#x2F;11&#x2F;29&#x2F;a-whirlwind-tour-of-gos-runtime-environment-variables&amp;hl=en&amp;gl=us&amp;strip=1&amp;vwsrc=0" rel="nofollow">http:&#x2F;&#x2F;webcache.googleusercontent.com&#x2F;search?q=cache:OXupz2Z...</a>
评论 #10645440 未加载
Artemis2over 9 years ago
There&#x27;s also GO15VENDOREXPERIMENT in Go 1.5. It enables dependency vendoring with a vendor&#x2F; directory for each package.<p>More details here: <a href="https:&#x2F;&#x2F;golang.org&#x2F;s&#x2F;go15vendor" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;s&#x2F;go15vendor</a>.
评论 #10644834 未加载
评论 #10644840 未加载