You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
220 B
Go
15 lines
220 B
Go
4 years ago
|
package main
|
||
|
|
||
|
type response struct {
|
||
|
Re int `json:"re"`
|
||
|
Type string `json:"type"`
|
||
|
Body interface{} `json:"body,omitempty"`
|
||
|
}
|
||
|
|
||
|
func ok(re int) response {
|
||
|
return response{
|
||
|
Re: re,
|
||
|
Type: "ok",
|
||
|
}
|
||
|
}
|