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.

The `go switch` function

28 pointsby anomalroilalmost 3 years ago

2 comments

bow_almost 3 years ago
It&#x27;s neat ~ could have used checks in-between to ensure e.g. `$(go env GOBIN)` is not empty.<p>For something more comprehensive (of course with a larger install size) and the possibility of handling not just Go, I have had good experiences with asdf [1].<p>[1] <a href="https:&#x2F;&#x2F;asdf-vm.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;asdf-vm.com&#x2F;</a>
评论 #31926720 未加载
评论 #31930642 未加载
zuzuleinenalmost 3 years ago
bob build sytem also has a convenient way to change go version for your projects[1]<p>it uses nix under the hood so it won&#x27;t mess with your local system<p>[1] <a href="https:&#x2F;&#x2F;bob.build&#x2F;docs&#x2F;getting-started&#x2F;package-management#using-a-package-with-multiple-versions" rel="nofollow">https:&#x2F;&#x2F;bob.build&#x2F;docs&#x2F;getting-started&#x2F;package-management#us...</a>