An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          





Build Status
codecov
Go Report Card
<br />
GoDoc

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`