Go mysql export to csv.
This is a code that exhibits use of:
- Local packages
- Mysql database connection and query
- Structs and slices to generate your own reporting
- Export to csv a todoapp
- github.com/360EntSecGroup-Skylar/excelize v1.4.1
- github.com/go-sql-driver/mysql v1.5.0
Run the sql script from the todoapp.sql
to your own mysql db.
go get
to install dependencies
go run
to run
go build
to get an executable file