Skip to content

prnvbn/go-rest-templ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-rest-templ

A simple template for a REST API server in Go.

Run

Run the server with SERVER_CONFIG_PATH=local_config.yaml go run cmd/server/main.go. An example config file is given below:

port: 9999

cat-facts:
  enabled: true
  url: "https://catfact.ninja/fact"

I come back to this from time to time and update it, currently using the following:

  • config: YAML file via env var
  • http: chi+huma
  • docs: huma
  • logging: zerolog
  • metrics: prometheus
  • CI/CD: GHA (TODO)

About

Go REST API template

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages