You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
684 B
Markdown

2 years ago
# Learn Golang
Following the O'Reilly "Learning Go: An Idiomatic Approach to Real-World Go Programming"
## Notes
- The use of `./...` denotes a wildcard for tools like `go fmt`. It matches all .go files in the current directory and it's subdirectories.
2 years ago
1 year ago
## Installing Revive
The legacy linter I guess is no longer supported but the [revive](https://revive.run/docs#installation) project is a reasonable successor.
```
go install github.com/mgechev/revive@latest
```
## Go Workspaces
Ok I don't really know about modules and workspaces, but to quiet the IDE I needed to add a `go.work` file to the root here, then a `go.mod` file to each subdir. We can figure this out later.