Skip to content
/ gee Public

Golang framework based on Gin, using Protobuf and Google API to generater

License

Notifications You must be signed in to change notification settings

goapt/gee

Repository files navigation


Build Status codecov Go Report Card
GoDoc

Gee is base on gin framework

Usage

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

    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

    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