Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corylanou/vetting
https://github.com/corylanou/vetting
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/corylanou/vetting
- Owner: corylanou
- Created: 2015-02-12T20:46:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-12T21:19:48.000Z (almost 10 years ago)
- Last Synced: 2023-03-11T18:03:04.507Z (almost 2 years ago)
- Language: Go
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vetting
This project illustrates an example of the difference between calling
`go vet` vs directly calling the `vet` tool via `xargs`.To see the difference, first run:
```sh
go vet ./...
```You should see no ouptput (everything ran clean).
Now run the following command:
```sh
GOTOOLDIR=$(go env GOTOOLDIR)
git ls-files | grep '.go$' | xargs $GOTOOLDIR/vet
```You will get the following result:
```sh
stuff.go:17: foo.Rows composite literal uses unkeyed fields
```