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. This tool is a CLI tool that can be installed on Windows, Mac, and Linux. As a CLI tool, it means that no matter what language you use to code, your migration can be managed using this golang-migrate. ...

2024-05-25

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 ...

2021-11-30  · Yanuar Arifin

docker-compose.yml for Golang Development

Hi, test things

2020-02-26