This is simple Go REST API to reproduce error when accessing mysql time data type using mysql driver. Read my explanation here :
- en version : https://blog.gavinda.dev/posts/mysql-time-not-supported-in-go-mysql-driver/
- id version : https://medium.com/@vinbyte/error-mysql-tipe-data-time-di-golang-254ee291f601
- Run your docker
- Clone this repo
- Run
cd go-time-error/afterorcd go-time-error/before - Linux or macOS : run
make startfor starting application andmake stopfor stopping application - Windows :
docker-compose up -d && docker image prunefor starting application anddocker-compose downfor taking it down.
- Clone this repo
- Make sure latest version of Golang is installed and setup properly
- Mysql installed
- Create your database and you can import
prepare_shift.sql - Run
cd go-time-error/afterorcd go-time-error/before - Modify the
config.yamlfile - Run
go run main.go