Cleanup code

This changes variable names that were abbreviations, uses more constants
from the net/http package and improves the json decoding / encoding.
This commit is contained in:
Felix Auringer
2021-04-27 08:47:11 +02:00
parent 78668ad430
commit 712d0e6420
4 changed files with 17 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
package api
type Message struct {
Msg string `json:"msg"`
Message string `json:"msg"`
}