[go-server] Change Routes type from []Route to map[string]Route (#15084)

* Change Routes to map[string]Route

* Fix linting issues

* Regenerate samples
This commit is contained in:
Ween Jiann
2023-04-11 15:40:06 +08:00
committed by GitHub
parent b6d2e0d222
commit 792c49a0ce
28 changed files with 334 additions and 464 deletions

View File

@@ -9,7 +9,7 @@
package petstoreserver
// ImplResponse response defines an error code with the associated body
// ImplResponse defines an implementation response with error code and the associated body
type ImplResponse struct {
Code int
Headers map[string][]string