So this is just example build microservice with static data, i hope this repo will help you learning golang
git clone https://github.com/farhanfatur/microservice-static-go.git
for Windows
set PORT=1234
for mac/linux
export PORT=1234
go run main.go