From The Couch
Published in

From The Couch

Random Unrelated photo by me

Adventures in Go

Creating my first Go application, a command line tool

#!/bin/bash

cp new /usr/local/bin/

But of course this is not so easy in Microsoft Windows. I wasn’t really comfortable with copying the thing to System32 so after some Googling, I came to the conclusion, as many StackOverflow threads on the topic had suggested, that the path to the file has to added to your Environment Variables. Not only did this suck because I now had to decide on a directory in which to install only one binary file, but for some reason this method only gave me access to the command in an Administrator mode. I needed something with way less friction, and it needed to work, that was also a requirement. This is where scoop came in.

Probably the world’s worst logo
An actual gopher

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store