Fix lint error

This commit is contained in:
Alessio 2024-05-05 11:23:06 -07:00
parent 71230e3886
commit 5d727487ba
2 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ func (app *Application) message_detail(w http.ResponseWriter, r *http.Request) {
body, err := io.ReadAll(r.Body) body, err := io.ReadAll(r.Body)
panic_if(err) panic_if(err)
var message_data struct { var message_data struct {
Text string `json:"text"` Text string `json:"text"`
LatestPollingTimestamp int `json:"latest_polling_timestamp,string"` LatestPollingTimestamp int `json:"latest_polling_timestamp,string"`
} }
panic_if(json.Unmarshal(body, &message_data)) panic_if(json.Unmarshal(body, &message_data))
trove := scraper.SendDMMessage(room_id, message_data.Text, 0) trove := scraper.SendDMMessage(room_id, message_data.Text, 0)

View File

@ -1,11 +1,11 @@
package scraper package scraper
import ( import (
"encoding/json"
"fmt" "fmt"
"html"
"net/url" "net/url"
"strings" "strings"
"html"
"encoding/json"
"github.com/google/uuid" "github.com/google/uuid"
) )