What does ./… mean in Go?


I usually see ./... in golang
for example go test ./...or go fmt ./...

only know the meaning of one or two dots


It means perform the action on all packages under a directory. So for example go test ./… runs go test on the current dir + all subdirectories.

The Go tool documentation is here:


Answered By – Kenny Grant

Answer Checked By – Terry (GoLangFix Volunteer)

Leave a Reply

Your email address will not be published.