Closed matthewhughes934 closed 10 months ago
Move test fixtures to testdata
testdata
This is a conventional name for test data and is recognised e.g. by go test
go test
[1] https://pkg.go.dev/cmd/go#hdr-Test_packages
Move go generation to use go generate
go generate
This feels a bit more idiomatic. The generation is also updated to write to stdout rather than a hard-coded filename
Add internal package to move code from toplevel
internal
Move test fixtures to
testdata
This is a conventional name for test data and is recognised e.g. by
go test
[1] https://pkg.go.dev/cmd/go#hdr-Test_packages
Move go generation to use
go generate
This feels a bit more idiomatic. The generation is also updated to write to stdout rather than a hard-coded filename
Add
internal
package to move code from toplevel