Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 889 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 889 Bytes

first-api-go

Actions Status Go Report Card

Example of API in Golang

Getting started

Prerequisites

You're going to need:

  • Go or Docker. (Its important configure the $GOPATH, in the link has an explain about)

Setting up Dev

  • Create config.toml like config-example.toml. Put all envs values like PORT.

Building / Run

Go

# build and run
go run main.go

# Build and generate exec
go build
# exec the app builded
./first-api-go

Docker

make build && make run