- start database
make db/up
- run go script
go run main.go
will print
go run main.go
> 2024/01/30 10:02:04 foo created
> 2024/01/30 10:02:04 2nd transaction returned error: should rollback
> 2024/01/30 10:02:04 foos: [{ID:1 Description:foo}]
you can also check the database record via phpmyadmin running at http://localhost:8080