Re: [go-nuts] go vet tool
Ah, yes it does work, if not documented in 'go help vet'. Thanks. -rob On Tue, Mar 5, 2019 at 10:20 AM Ian Lance Taylor wrote: > On Mon, Mar 4, 2019 at 2:00 PM Rob Pike wrote: > > > > The help for go vet does not mention that one can pass individual files, > only packages. > > I'm hardly going to claim that the docs are clear, but most of the go > commands accept a list of files, which is documented at > https://golang.org/cmd/go/#hdr-Package_lists_and_patterns if you read > carefully. > > Ian > > > On Tue, Mar 5, 2019 at 6:20 AM Ian Lance Taylor wrote: > >> > >> On Sun, Mar 3, 2019 at 11:02 PM wrote: > >> > > >> > Is it possible to use go vet as go tool vet . With > go vet it is giving no go source files, to use vet tool every time i have > to go different paths. Is there any way to use go vet as go tool vet. With > go tool vet I can be able to see log of all the folders at a time and no > need to go each and every folder. Currently, I am using go 1.12 which no > supporting go tool vet command. > >> > >> As the release notes say, `go tool vet` is no longer supported > >> (https://golang.org/doc/go1.12#vet). But `go vet` does support > >> passing file paths, and it does support checking directory trees with > >> `go vet a/b/...`. > >> > >> Ian > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups "golang-nuts" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an email to golang-nuts+unsubscr...@googlegroups.com. > >> For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] go vet tool
On Mon, Mar 4, 2019 at 2:00 PM Rob Pike wrote: > > The help for go vet does not mention that one can pass individual files, only > packages. I'm hardly going to claim that the docs are clear, but most of the go commands accept a list of files, which is documented at https://golang.org/cmd/go/#hdr-Package_lists_and_patterns if you read carefully. Ian > On Tue, Mar 5, 2019 at 6:20 AM Ian Lance Taylor wrote: >> >> On Sun, Mar 3, 2019 at 11:02 PM wrote: >> > >> > Is it possible to use go vet as go tool vet . With go >> > vet it is giving no go source files, to use vet tool every time i have to >> > go different paths. Is there any way to use go vet as go tool vet. With go >> > tool vet I can be able to see log of all the folders at a time and no >> > need to go each and every folder. Currently, I am using go 1.12 which no >> > supporting go tool vet command. >> >> As the release notes say, `go tool vet` is no longer supported >> (https://golang.org/doc/go1.12#vet). But `go vet` does support >> passing file paths, and it does support checking directory trees with >> `go vet a/b/...`. >> >> Ian >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] go vet tool
The help for go vet does not mention that one can pass individual files, only packages. -rob On Tue, Mar 5, 2019 at 6:20 AM Ian Lance Taylor wrote: > On Sun, Mar 3, 2019 at 11:02 PM wrote: > > > > Is it possible to use go vet as go tool vet . With go > vet it is giving no go source files, to use vet tool every time i have to > go different paths. Is there any way to use go vet as go tool vet. With go > tool vet I can be able to see log of all the folders at a time and no need > to go each and every folder. Currently, I am using go 1.12 which no > supporting go tool vet command. > > As the release notes say, `go tool vet` is no longer supported > (https://golang.org/doc/go1.12#vet). But `go vet` does support > passing file paths, and it does support checking directory trees with > `go vet a/b/...`. > > Ian > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] go vet tool
On Sun, Mar 3, 2019 at 11:02 PM wrote: > > Is it possible to use go vet as go tool vet . With go vet > it is giving no go source files, to use vet tool every time i have to go > different paths. Is there any way to use go vet as go tool vet. With go tool > vet I can be able to see log of all the folders at a time and no need to go > each and every folder. Currently, I am using go 1.12 which no supporting go > tool vet command. As the release notes say, `go tool vet` is no longer supported (https://golang.org/doc/go1.12#vet). But `go vet` does support passing file paths, and it does support checking directory trees with `go vet a/b/...`. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] go vet tool
I do wish it were still possible to do "go vet file.go" or "go vet directory" although I do understand why it is not (type checking). Over time, everything gets better but also worse and always bigger and more complex. -rob On Mon, Mar 4, 2019 at 6:02 PM wrote: > Is it possible to use go vet as go tool vet . With go > vet it is giving no go source files, to use vet tool every time i have to > go different paths. Is there any way to use go vet as go tool vet. With go > tool vet I can be able to see log of all the folders at a time and no need > to go each and every folder. Currently, I am using go 1.12 which no > supporting go tool vet command. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[go-nuts] go vet tool
Is it possible to use go vet as go tool vet . With go vet it is giving no go source files, to use vet tool every time i have to go different paths. Is there any way to use go vet as go tool vet. With go tool vet I can be able to see log of all the folders at a time and no need to go each and every folder. Currently, I am using go 1.12 which no supporting go tool vet command. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.