This commit is contained in:
parent
50fff7b5ad
commit
4f861883fc
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -41,7 +41,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
resJson, err := json.Marshal(httpResposne)
|
resJson, err := json.Marshal(httpResposne)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal().Err(err).Interface("httpResponse", ResultReturn).Msg("Check Error")
|
log.Fatal().Err(err).Interface("httpResponse", ResultReturn{}).Msg("Check Error")
|
||||||
}
|
}
|
||||||
if gloableRes {
|
if gloableRes {
|
||||||
w.Write(resJson)
|
w.Write(resJson)
|
||||||
|
|
Loading…
Reference in a new issue