Skip to content

Commit

Permalink
Merge pull request #24 from dongxuny/master
Browse files Browse the repository at this point in the history
Bump up rk-echo version and fix bugs in example
  • Loading branch information
dongxuny committed Nov 26, 2021
2 parents a1b97b4 + 506a2f8 commit cb37796
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/echo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
func main() {
// Create a new boot instance.
boot := rkboot.NewBoot()
boot := rkboot.NewBoot(rkboot.WithBootConfigPath("example/echo/boot.yaml"))

// Register handler
boot.GetEchoEntry("greeter").Echo.GET("/v1/hello", hello)
Expand Down
2 changes: 1 addition & 1 deletion example/gin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
func main() {
// Create a new boot instance.
boot := rkboot.NewBoot()
boot := rkboot.NewBoot(rkboot.WithBootConfigPath("example/gin/boot.yaml"))

// Register handler
boot.GetGinEntry("greeter").Router.GET("/v1/hello", hello)
Expand Down
2 changes: 1 addition & 1 deletion example/simple-gin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
func main() {
// Create a new boot instance.
boot := rkboot.NewBoot()
boot := rkboot.NewBoot(rkboot.WithBootConfigPath("example/simple-gin/boot.yaml"))

// Register handler
boot.GetGinEntry("greeter").Router.GET("/v1/hello", hello)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/gin-gonic/gin v1.7.2
github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0
github.com/labstack/echo/v4 v4.6.1
github.com/rookie-ninja/rk-echo v0.0.2
github.com/rookie-ninja/rk-echo v0.0.3
github.com/rookie-ninja/rk-entry v1.0.3
github.com/rookie-ninja/rk-gin v1.2.10
github.com/rookie-ninja/rk-grpc v1.2.12
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ github.com/rogpeppe/go-internal v1.3.0 h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhg
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rookie-ninja/rk-common v1.2.1 h1:FmsI2jEXYjyyshjYKcQZbUhYjylN3T1ouTxxz5PWmXc=
github.com/rookie-ninja/rk-common v1.2.1/go.mod h1:6l/j+PwaLI38wHoN49RQCve6BNoOjb2zLhU3PQA1uzA=
github.com/rookie-ninja/rk-echo v0.0.2 h1:sndXEXM/LBvWSelN63l2FcTuCA0pBm9skI8+YU8jE4g=
github.com/rookie-ninja/rk-echo v0.0.2/go.mod h1:8YSPHdlixH2plqlJYr5Qb6WtAfd2mU+NPFkULGWGPKo=
github.com/rookie-ninja/rk-echo v0.0.3 h1:348gIj83Sp9UP3zkulYB5lY7IYrC5TBag3jYP1ZIhEE=
github.com/rookie-ninja/rk-echo v0.0.3/go.mod h1:8YSPHdlixH2plqlJYr5Qb6WtAfd2mU+NPFkULGWGPKo=
github.com/rookie-ninja/rk-entry v1.0.3 h1:LQlTlS9ESzAomGdvShf6XUUtJ5irrzMNEtvpV51QV80=
github.com/rookie-ninja/rk-entry v1.0.3/go.mod h1:JlZF5qtC5Gl8jUv2NME4u9JtzZmH50WzRVwmgEQaiPI=
github.com/rookie-ninja/rk-gin v1.2.10 h1:BiSpQhNgRVxhQL1yOsJeItRsipq2MHb+0h6/cUEIsKA=
Expand Down

0 comments on commit cb37796

Please sign in to comment.