Update to Go 1.20 + run better align (#2927)

* chore(go): update go version to 1.20. Closes #2185

* chore(go): run better align against project

To optimize struct field order. Closes #2870

* chore(go): update CI jobs to use Go 1.20

* fix(go): linter warnings for Go 1.20 update
This commit is contained in:
Gabe Kangas
2023-05-30 10:31:43 -07:00
committed by GitHub
parent 7e0907e16c
commit 85e7af3d5f
47 changed files with 248 additions and 695 deletions

View File

@@ -11,19 +11,19 @@ import (
)
type ypDetailsResponse struct {
Name string `json:"name"`
Description string `json:"description"`
StreamTitle string `json:"streamTitle,omitempty"`
Logo string `json:"logo"`
NSFW bool `json:"nsfw"`
Tags []string `json:"tags"`
Online bool `json:"online"`
ViewerCount int `json:"viewerCount"`
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
Social []models.SocialHandle `json:"social"`
LastConnectTime *utils.NullTime `json:"lastConnectTime"`
Name string `json:"name"`
Description string `json:"description"`
StreamTitle string `json:"streamTitle,omitempty"`
Logo string `json:"logo"`
Tags []string `json:"tags"`
Social []models.SocialHandle `json:"social"`
LastConnectTime *utils.NullTime `json:"lastConnectTime"`
ViewerCount int `json:"viewerCount"`
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
NSFW bool `json:"nsfw"`
Online bool `json:"online"`
}
// GetYPResponse gets the status of the server for YP purposes.

View File

@@ -27,9 +27,9 @@ type YP struct {
type ypPingResponse struct {
Key string `json:"key"`
Success bool `json:"success"`
Error string `json:"error"`
ErrorCode int `json:"errorCode"`
Success bool `json:"success"`
}
type ypPingRequest struct {