Go API Sever, layered architecture sample
$ 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)
- Run server
$ make run
- Access with browsers
http://localhost:1323/v1/example/1
-
Setup wire
-
If you change dependency injection info (handler/wire.go), you need to call this command.
$ make wire