diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-11-29 01:47:10 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-11-29 18:14:17 +0100 |
commit | 74970372b6586b336364ac1affac9dd7d22baef1 (patch) | |
tree | 5e801e7ba16198c165f6d8450490cd82e6426521 /pkg/motd/motd.go | |
parent | 18f52af5be3a9a0c73811706108f790d65ee9c67 (diff) |
[gui] motd
Diffstat (limited to 'pkg/motd/motd.go')
-rw-r--r-- | pkg/motd/motd.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/motd/motd.go b/pkg/motd/motd.go index db21025..4dead55 100644 --- a/pkg/motd/motd.go +++ b/pkg/motd/motd.go @@ -47,6 +47,11 @@ type Message struct { Text []LocalizedText `json:"text"` } +type LocalizedText struct { + Lang string `json:"lang"` + Str string `json:"str"` +} + func (m *Message) IsValid() bool { valid := (m.IsValidBegin() && m.IsValidEnd() && m.IsValidType() && m.IsValidPlatform() && m.IsValidUrgency() && @@ -111,8 +116,3 @@ func (m *Message) IsValidUrgency() bool { func (m *Message) HasLocalizedText() bool { return len(m.Text) > 0 } - -type LocalizedText struct { - Lang string `json:"lang"` - Str string `json:"str"` -} |