Skip to content

brunoluiz/go-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Lab

🧪 Laboratory for my Go and infrastructure experiments

Requirements

Because oapi-codegen is still under development, you will need to have NodeJS installed so you can flatten out the schema.

  • NodeJS (any recent version)
  • Go 1.19+

Commands

  • ./run.sh: runs a binary under services/$1/cmd/$2 with hot-reloading
  • ./curl.sh: few useful curls for testing

Structure

core/                 # core tooling
notes/                # learnings so far
services/
  <service_name>
    cmd/              # binaries
      <api>
      <cron>
      <subscriber>
    internal/
      ...
    sqlc.yaml         # sqlc/repository generation config
    openapi.yaml      # openapi3 schema definitions
    oapi-codegen.yaml # oapi-codegen generation config
    gen.go            # config for `go generate ./...`

About

🧪 Laboratory for my Go and infrastructure experiments

Resources

Stars

Watchers

Forks

Releases

No releases published