Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.55 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.55 KB


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