Skip to content

fukuyama012/go-server-layered-sample

Repository files navigation

go-server-layered-sample

Go API Sever, layered architecture sample

Install

$ git clone https://github.com/fukuyama012/go-server-layered-sample.git
  • Setup goenv

  • Install Specified Go Version

$ goenv install `cat .go-version`
  • Check Go version (same .go-version)
$ go version
go version go1.15.3 darwin/amd64 (for example)

How to run

  • Run server
$ make run
  • Access with browsers
http://localhost:1323/v1/example/1

Reflect changes

  • Setup wire

  • If you change dependency injection info (handler/wire.go), you need to call this command.

$ make wire

Releases

No releases published

Packages

No packages published