On Tue, Sep 12, 2023 at 8:47 PM 'John Souvestre' via golang-nuts
<[email protected]> wrote:
>
> I’m trying to run gofmt on all of the .go files in a directory, but not any 
> subdirectories.  I have tried using “.” for the target.  It does get all of 
> the .go in the current directory, but it also does all the .go files in 
> subdirectories.  To be more specific: There is one particular subdirectory 
> which I don’t want it to process: “_Save”.
>
>
>
> The https://pkg.go.dev/cmd/go documentation says:
>
>
>
> Directory and file names that begin with "." or "_" are ignored by the go 
> tool, as are directories named "testdata".

Note that this applies to "go fmt", not "gofmt".

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcV46-W-4W1WrzeC0VzfU2YAtjV8XCLOu8iqx9rQ9W%3DgbQ%40mail.gmail.com.

Reply via email to