https://github.com/zoltan-nz/playing-with-golang
https://github.com/zoltan-nz/playing-with-golang
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zoltan-nz/playing-with-golang
- Owner: zoltan-nz
- Created: 2018-01-01T22:41:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T05:54:47.000Z (12 months ago)
- Last Synced: 2025-01-22T02:46:04.567Z (9 months ago)
- Language: Go
- Size: 673 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playing With Go
In the program folder (`./src/hello`)
```
$ go build
```Run without compilation:
```
$ go run main.go
```Format:
```
$ gofmt -w main.go
```Import:
```
$ goimport -w main.go
```## Dependency management
```
$ brew install dep
```* `$GOPATH` can point to `~/projects/go`
* Add `$GOPATH/bin` to `$PATH`
* All your go project should be in `~/projects/go/src`