Closed PeterBooker closed 3 years ago
Begins making the project more modular.
Moves the entry point to cmd/anonymize-mysqldump/anonymize-mysqldump.go and all other packages to /internal/*.
cmd/anonymize-mysqldump/anonymize-mysqldump.go
/internal/*
So far I only split out the faker functions into a helpers package, as an example of how parts of code can be split off into modular packages.
helpers
You can now install with the command go install ./... and test with the command go test ./....
go install ./...
go test ./...
Begins making the project more modular.
Moves the entry point to
cmd/anonymize-mysqldump/anonymize-mysqldump.go
and all other packages to/internal/*
.So far I only split out the faker functions into a
helpers
package, as an example of how parts of code can be split off into modular packages.You can now install with the command
go install ./...
and test with the commandgo test ./...
.