Re: [go-nuts] How ignore a subdirectory

2023-09-12 Thread Jan Mercl
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 unsubscrib

[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 subdirecto

Re: [go-nuts] [ANN] type-safe templates

2023-09-12 Thread roger peppe
This is very cool, thanks! On Sun, 10 Sept 2023 at 16:20, Jonathan Amsterdam wrote: > The latest version of github.com/jba/templatecheck[0] > supports templates that > cannot have type errors at execution time. > > Once you've parsed your template `t`

Re: [go-nuts] Using go module 101, undefined types

2023-09-12 Thread Brian Candler
> I also tried to build the whole project with `go build .` To do that you would need: mkdir -p bin go build -o bin ./... The following compiles fine for me. Note that in your original post the error talks about api.PetStore, but the code you showed was a call to api.NewPetStore. Incidentally,