Fix lint error

This commit is contained in:
Alessio 2024-05-09 13:13:37 -07:00
parent 2a7a4e700e
commit e12f347650

View File

@ -31,7 +31,7 @@ func (app *Application) message_send(w http.ResponseWriter, r *http.Request) {
body, err := io.ReadAll(r.Body)
panic_if(err)
var message_data struct {
Text string `json:"text"`
Text string `json:"text"`
}
panic_if(json.Unmarshal(body, &message_data))