Skip to content

Commit

Permalink
Update exemples packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuma committed May 25, 2023
1 parent 17fc4ae commit 4d2d37d
Show file tree
Hide file tree
Showing 12 changed files with 124 additions and 4,316 deletions.
19 changes: 17 additions & 2 deletions examples/1-hello-world/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
module github.com/mwm-io/gapi/examples/1-hello-world

go 1.16
go 1.18

require github.com/mwm-io/gapi v0.0.4
require github.com/mwm-io/gapi v0.1.0

require (
github.com/elnormous/contenttype v1.0.3 // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/schema v1.2.0 // indirect
github.com/swaggest/jsonschema-go v0.3.40 // indirect
github.com/swaggest/openapi-go v0.2.24 // indirect
github.com/swaggest/refl v1.1.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.24.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
1,089 changes: 13 additions & 1,076 deletions examples/1-hello-world/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/1-hello-world/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func main() {

gLog.Info("Starting http server")
if err := server.ServeAndHandleShutdown(r); err != nil {
gLog.LogAny(err)
gLog.Emergency(err.Error())
}

gLog.Info("Server stopped")
Expand Down
19 changes: 17 additions & 2 deletions examples/2-encoders/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
module github.com/mwm-io/gapi/examples/2-encoders

go 1.16
go 1.18

require github.com/mwm-io/gapi v0.0.4
require github.com/mwm-io/gapi v0.1.0

require (
github.com/elnormous/contenttype v1.0.3 // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/schema v1.2.0 // indirect
github.com/swaggest/jsonschema-go v0.3.40 // indirect
github.com/swaggest/openapi-go v0.2.24 // indirect
github.com/swaggest/refl v1.1.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.24.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
1,089 changes: 13 additions & 1,076 deletions examples/2-encoders/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/2-encoders/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func main() {

gLog.Info("Starting http server")
if errServe := server.ServeAndHandleShutdown(r); errServe != nil {
gLog.LogAny(errServe)
gLog.Emergency(errServe.Error())
}

gLog.Info("Server stopped")
Expand Down
19 changes: 17 additions & 2 deletions examples/3-params/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
module github.com/mwm-io/gapi/examples/3-params

go 1.16
go 1.18

require github.com/mwm-io/gapi v0.0.4
require github.com/mwm-io/gapi v0.1.0

require (
github.com/elnormous/contenttype v1.0.3 // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/schema v1.2.0 // indirect
github.com/swaggest/jsonschema-go v0.3.40 // indirect
github.com/swaggest/openapi-go v0.2.24 // indirect
github.com/swaggest/refl v1.1.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.24.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
1,089 changes: 13 additions & 1,076 deletions examples/3-params/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/3-params/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func main() {

gLog.Info("Starting http server")
if err := server.ServeAndHandleShutdown(r); err != nil {
gLog.LogAny(err)
gLog.Emergency(err.Error())
}

gLog.Info("Server stopped")
Expand Down
19 changes: 17 additions & 2 deletions examples/4-doc-openapi/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
module github.com/mwm-io/gapi/examples/4-doc-openapi

go 1.16
go 1.18

require github.com/mwm-io/gapi v0.0.4
require github.com/mwm-io/gapi v0.1.0

require (
github.com/elnormous/contenttype v1.0.3 // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/schema v1.2.0 // indirect
github.com/swaggest/jsonschema-go v0.3.40 // indirect
github.com/swaggest/openapi-go v0.2.24 // indirect
github.com/swaggest/refl v1.1.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.24.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
1,089 changes: 13 additions & 1,076 deletions examples/4-doc-openapi/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/4-doc-openapi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func main() {
gLog.Info("Starting http server")

if err := server.ServeAndHandleShutdown(r); err != nil {
gLog.LogAny(err)
gLog.Emergency(err.Error())
}

gLog.Info("Server stopped")
Expand Down

0 comments on commit 4d2d37d

Please sign in to comment.