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

@@ -8,32 +8,37 @@ import (
// Defaults will hold default configuration values.
type Defaults struct {
Name string
Title string
PageBodyContent string
FederationGoLiveMessage string
Summary string
ServerWelcomeMessage string
Logo string
Tags []string
PageBodyContent string
YPServer string
Title string
DatabaseFilePath string
WebServerPort int
WebServerIP string
RTMPServerPort int
AdminPassword string
StreamKeys []models.StreamKey
YPEnabled bool
YPServer string
FederationUsername string
WebServerIP string
Name string
AdminPassword string
StreamKeys []models.StreamKey
StreamVariants []models.StreamOutputVariant
Tags []string
RTMPServerPort int
SegmentsInPlaylist int
SegmentLengthSeconds int
SegmentsInPlaylist int
StreamVariants []models.StreamOutputVariant
FederationUsername string
FederationGoLiveMessage string
WebServerPort int
ChatEstablishedUserModeTimeDuration time.Duration
YPEnabled bool
}
// GetDefaults will return default configuration values.