[HN Gopher] The `go switch` function
       ___________________________________________________________________
        
       The `go switch` function
        
       Author : anomalroil
       Score  : 6 points
       Date   : 2022-06-29 20:52 UTC (2 hours ago)
        
 (HTM) web link (gist.github.com)
 (TXT) w3m dump (gist.github.com)
        
       | bow_ wrote:
       | It's neat ~ could have used checks in-between to ensure e.g.
       | `$(go env GOBIN)` is not empty.
       | 
       | 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].
       | 
       | [1] https://asdf-vm.com/
        
         | SPascareli13 wrote:
         | I use ASDF and it's very good to manage versions, specially if
         | you have multiple projects with different versions of go or
         | node, for example.
         | 
         | You don't even need to manually switch, you can set a version
         | per folder!
         | 
         | Of course, the thing about bash scripts is that they are super
         | specialized to do one thing, that usually only really works for
         | the creator's workflow.
        
       ___________________________________________________________________
       (page generated 2022-06-29 23:01 UTC)