mirror of
https://github.com/labstack/echo.git
synced 2025-07-03 00:56:59 +02:00
Change type definition blocks to single declarations. This helps copy/pasting Echo code in examples. (#2606)
This commit is contained in:
10
echo_test.go
10
echo_test.go
@ -25,12 +25,10 @@ import (
|
||||
"golang.org/x/net/http2"
|
||||
)
|
||||
|
||||
type (
|
||||
user struct {
|
||||
ID int `json:"id" xml:"id" form:"id" query:"id" param:"id" header:"id"`
|
||||
Name string `json:"name" xml:"name" form:"name" query:"name" param:"name" header:"name"`
|
||||
}
|
||||
)
|
||||
type user struct {
|
||||
ID int `json:"id" xml:"id" form:"id" query:"id" param:"id" header:"id"`
|
||||
Name string `json:"name" xml:"name" form:"name" query:"name" param:"name" header:"name"`
|
||||
}
|
||||
|
||||
const (
|
||||
userJSON = `{"id":1,"name":"Jon Snow"}`
|
||||
|
Reference in New Issue
Block a user