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:
@@ -1,5 +1,5 @@
|
||||
package api
|
||||
|
||||
type Message struct {
|
||||
Msg string `json:"msg"`
|
||||
Message string `json:"msg"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user