Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethan-arrowood/hello-go
A simple repo while I learn Go 👾
https://github.com/ethan-arrowood/hello-go
Last synced: 9 days ago
JSON representation
A simple repo while I learn Go 👾
- Host: GitHub
- URL: https://github.com/ethan-arrowood/hello-go
- Owner: Ethan-Arrowood
- Created: 2018-09-28T15:42:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T15:55:44.000Z (about 6 years ago)
- Last Synced: 2024-10-05T17:43:09.817Z (3 months ago)
- Language: Go
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go
## Set Up
- Install Go
- Create a `workspace` directory
- This directory will contain all of the `Go` things on the machine.
- There are two folders `bin` and `src`.
- As most of my work will be source controlled on GitHub, my project directories will exist under `$GOPATH/src/github.com/ethan-arrowood/`.
- Set `$GOPATH` - this should be `$HOME/go`
- On mac and ZSH add `export GOPATH=$HOME/go` to `~/.zshrc`
- Add `$GOPATH/bin` to `PATH` so the `go` project distributions can be run
from anywhere on the machine## How to compile and run code
Inside the working directory (under `src`) simply run `go install`.
If outside the working directory, must specify what to install i.e. `go install $GOPATH/src/github.com/ethan-arrowood/hello-go`