Re: [go-nuts] How ignore a subdirectory
On Wed, Sep 13, 2023 at 12:27 PM 'John Souvestre' via golang-nuts wrote: > > What is TIL? https://knowyourmeme.com/memes/today-i-learned-til 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVviOBQf70XH6LonsQhma79HFKMpiQ-RO%3DAZfwD4JC%2Bkg%40mail.gmail.com.
RE: [go-nuts] How ignore a subdirectory
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: [go-nuts] How ignore a subdirectory I believe that "go fmt ." (note the space after "go") works on the current package only. On Wednesday, 13 September 2023 at 11:34:35 UTC+1 Jan Mercl wrote: On Wed, Sep 13, 2023 at 12:25 PM John Souvestre mailto:jo...@souvestre.com> > wrote: > I did try that also. I get this error message: > > CreateFile *.go: The filename, directory name, or volume label syntax is > incorrect. Sorry, I'm not familiar with Windows and only TIL cmd.exe does not expand globs. I suggest to install WSL and try something like C:\>bash -c 'gofmt *.go' HTH -- 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 <mailto:golang-nuts+unsubscr...@googlegroups.com> . To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/cf14f4f9-14fa-495e-905e-d7a62d8c070dn%40googlegroups.com <https://groups.google.com/d/msgid/golang-nuts/cf14f4f9-14fa-495e-905e-d7a62d8c070dn%40googlegroups.com?utm_medium=email_source=footer> . -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/012f01d9e678%2489f2e040%249dd8a0c0%24%40Souvestre.com.
RE: [go-nuts] How ignore a subdirectory
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 Souvestre Cc: golang-nuts@googlegroups.com Subject: Re: [go-nuts] How ignore a subdirectory On Wed, Sep 13, 2023 at 12:25 PM John Souvestre mailto:j...@souvestre.com> > wrote: > I did try that also. I get this error message: > > CreateFile *.go: The filename, directory name, or volume label syntax is > incorrect. Sorry, I'm not familiar with Windows and only TIL cmd.exe does not expand globs. I suggest to install WSL and try something like C:\>bash -c 'gofmt *.go' HTH -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/012a01d9e678%243ed46070%24bc7d2150%24%40Souvestre.com.
Re: [go-nuts] How ignore a subdirectory
On Tue, Sep 12, 2023 at 8:47 PM '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. 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 golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcV46-W-4W1WrzeC0VzfU2YAtjV8XCLOu8iqx9rQ9W%3DgbQ%40mail.gmail.com.
Re: [go-nuts] How ignore a subdirectory
I believe that "go fmt ." (note the space after "go") works on the current package only. On Wednesday, 13 September 2023 at 11:34:35 UTC+1 Jan Mercl wrote: > On Wed, Sep 13, 2023 at 12:25 PM John Souvestre > wrote: > > I did try that also. I get this error message: > > > > CreateFile *.go: The filename, directory name, or volume label > syntax is incorrect. > > Sorry, I'm not familiar with Windows and only TIL cmd.exe does not expand > globs. I suggest to install WSL and try something like > > C:\>bash -c 'gofmt *.go' > > HTH > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/cf14f4f9-14fa-495e-905e-d7a62d8c070dn%40googlegroups.com.
Re: [go-nuts] How ignore a subdirectory
On Wed, Sep 13, 2023 at 12:25 PM John Souvestre wrote: > I did try that also. I get this error message: > > CreateFile *.go: The filename, directory name, or volume label syntax is incorrect. Sorry, I'm not familiar with Windows and only TIL cmd.exe does not expand globs. I suggest to install WSL and try something like C:\>bash -c 'gofmt *.go' HTH -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-WiqO8BsKxi3wB%2Bg6L8GgZQSqCirT-3pHS%2BVND2%2BXw1kQ%40mail.gmail.com.
RE: [go-nuts] How ignore a subdirectory
I did try that also. I get this error message: CreateFile *.go: The filename, directory name, or volume label syntax is incorrect. John John SouvestreNew Orleans LA, USA504-454-0899 -Original Message- From: Jan Mercl <0xj...@gmail.com> Sent: 2023-09-13, Wed 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 *.go -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/00f201d9e62c%24a6c5a320%24f450e960%24%40Souvestre.com.
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 *.go -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-WiBpBdhHrb2t%3Duf0Ooajk%2BfALeWQEYfj%3D2rEADTOh8jw%40mail.gmail.com.