Use Golang Migrate on Docker Compose

Previously I setup docker compose for golang application and PostgreSQL. It can run the application and can connect to PostgreSQL. While doing basic CRUD, I found that I need a tool to migrate my database structure and seed the database for easy onboarding and development. Thus I want to use golang-migrate to do that. What Is Golang Migrate Contrary to the name, it is not a migration tool specifically created for golang development, although we can use it as a golang package in your application....

May 25, 2024

Testing Set Up in Golang

File conventions, function naming conventions, how to separate test to test cases, send output (fmt.Println-ish), mark the test as fail ...

November 30, 2021 · Yanuar Arifin

docker-compose.yml for Golang Development

Hi, test things

February 26, 2020