I'm trying to execute some code from the following book:
Learning Go - An Idiomatic Approach to Real-World Go Programming written by Jon Bodner
The first chapter talks about making a Makefile to automate executing certain commands, like the go fmt some_code.go
command.
The book says that writing the command like this: go fmt ./...
will cause the command to run over your entire project.
However when I try to run this command I get the following error:
pattern ./...: directory prefix . does not contain main module or its selected dependencies
When I try to look up this ./... argument online, I can't find anything.
So I was wondering what this argument does in the command line.
By the way I'm using a zsh terminal on a MacOS system.
So if anybody knows what this ./... means, what I am doing wrong or what I am supposed to be doing, that would be much appreciated.
Thanks