https://github.com/goapt/gee
Golang framework based on Gin, using Protobuf and Google API to generater
https://github.com/goapt/gee
framework gin golang googleapis protobuf
Last synced: 12 months ago
JSON representation
Golang framework based on Gin, using Protobuf and Google API to generater
- Host: GitHub
- URL: https://github.com/goapt/gee
- Owner: goapt
- License: mit
- Created: 2019-06-13T03:55:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-13T23:03:44.000Z (about 2 years ago)
- Last Synced: 2025-03-26T10:15:58.104Z (about 1 year ago)
- Topics: framework, gin, golang, googleapis, protobuf
- Language: Go
- Homepage:
- Size: 572 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Gee is base on gin framework
## Usage
```go
import "github.com/goapt/gee"
router := gee.Default()
router.GET("/", func(c *gee.Context) error {
return c.String("hello")
})
```
## Proto API tools
```
go install github.com/goapt/gee/cmd/protoc-gen-go-gee-errors
go install github.com/goapt/gee/cmd/protoc-gen-go-gee-http
```
generate error
```shell
protoc --proto_path=. --proto_path=../third_party \
--go_out=paths=source_relative:. \
--go-gee-errors_out=paths=source_relative:. \
./proto/demo/v1/error_reason.proto
```
generate http
```shell
protoc --proto_path=. --proto_path=../third_party \
--go_out=paths=source_relative:. \
--go-gee-http_out=paths=source_relative:. \
./proto/demo/v1/demo.proto
```
For example: `/example`