Update to go 1.24, small code cleanup
This commit is contained in:
parent
9f31bf557d
commit
b3290c357d
4 changed files with 3 additions and 13 deletions
10
notice.go
10
notice.go
|
@ -25,16 +25,6 @@ type WidNotice struct {
|
|||
PortalUrl string
|
||||
}
|
||||
|
||||
// func (n WidNotice) serialized() ([]byte, error) {
|
||||
// return json.Marshal(n)
|
||||
// }
|
||||
|
||||
// func NewWidNoticeFromJSON(data []byte) (WidNotice, error) {
|
||||
// n := WidNotice{}
|
||||
// err := json.Unmarshal(data, &n)
|
||||
// return n, err
|
||||
// }
|
||||
|
||||
func noticeSliceContains(notices []WidNotice, notice WidNotice) bool {
|
||||
for _, x := range notices {
|
||||
if x.Uuid == notice.Uuid {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue