Code samples from Go Cookbook.
Chapter: Using MySQL in Docker for local testing In Go.
You must have docker installed.
Legend:
- main.go : shows how to programmatically start MySQL running inside a Docker container and obtain ip address to connect to