[go-nuts] How ignore a subdirectory

2023-09-12 Thread 'John Souvestre' via golang-nuts
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

RE: [go-nuts] How ignore a subdirectory

2023-09-13 Thread 'John Souvestre' via golang-nuts
01:31 To: John Souvestre Cc: golang-nuts@googlegroups.com Subject: Re: [go-nuts] How ignore a subdirectory On Wed, Sep 13, 2023 at 5:47�AM 'John Souvestre' via golang-nuts wrote: > I�m trying to run gofmt on all of the .go files in a directory, but not any > subdirectories. $ gofmt *

RE: [go-nuts] How ignore a subdirectory

2023-09-13 Thread 'John Souvestre' via golang-nuts
You are correct. However, “gofmt .” recurses. It turns out that they handle it differently. John John SouvestreNew Orleans LA, USA504-454-0899 From: golang-nuts@googlegroups.com On Behalf Of Brian Candler Sent: 2023-09-13, Wed 07:30 To: golang-nuts Subject: Re:

RE: [go-nuts] How ignore a subdirectory

2023-09-13 Thread 'John Souvestre' via golang-nuts
What is TIL? Installing WSL just to solve this seems like it might be overkill. A for loop in a batch file, or in DOSKEY, would suffice. John John SouvestreNew Orleans LA, USA504-454-0899 From: Jan Mercl <0xj...@gmail.com> Sent: 2023-09-13, Wed 05:33 To: John