Categorygithub.com/goapt/gee
repositorypackage
1.7.0
Repository: https://github.com/goapt/gee.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README


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