A Go framework suitable for rapid business development, which can quickly build API services or Web sites. English | ไธญๆๆๆกฃ
Eagle utilizes a classic layered structure and employs the Wire dependency injection framework to enhance modularity and reduce coupling between components.
โโโ Makefile
โโโ api
โโโ cmd
โโโ config
โโโ docs
โโโ internal
โ โโโ cache
โ โโโ handler
โ โโโ middleware
โ โโโ model
โ โโโ dao
โ โโโ ecode
โ โโโ routers
โ โโโ server
โ โโโ service
โโโ logs
โโโ main.go
โโโ pkg
โโโ test
โโโ scripts
GOPROXY="https://goproxy.cn,direct"
# go >= 1.16
go install github.com/go-eagle/eagle/cmd/eagle@latest
# go < 1.16
go get github.com/go-eagle/eagle/cmd/eagle
# only gen a server with http
eagle new eagle-demo
# or
eagle new github.com/foo/eagle-demo
# gen a server with http and gRPC
eagle new -b=main eagle-demo
# or
eagle new github.com/foo/eagle-demo
# install dependence
go mod tidy
# run
make run
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
MIT. See the LICENSE file for details.