summaryrefslogtreecommitdiff
path: root/types/discovery/discovery.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-12 19:18:05 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commit74e36f0ead717105f26087c2cab08b41ba5a7ce8 (patch)
tree1eb2b7516bea705c9b5a50ce0965e170414ed880 /types/discovery/discovery.go
parent682d70091af2044ff6d8b350da9dff13163232e2 (diff)
All: Document everything to pass revive lint
Diffstat (limited to 'types/discovery/discovery.go')
-rw-r--r--types/discovery/discovery.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/discovery/discovery.go b/types/discovery/discovery.go
index bc22eab..cadd192 100644
--- a/types/discovery/discovery.go
+++ b/types/discovery/discovery.go
@@ -1,4 +1,4 @@
-// package discovery defines the public types that have to deal with discovery
+// Package discovery defines the public types that have to deal with discovery
package discovery
import (
@@ -70,7 +70,7 @@ type Server struct {
// This library always marshals the data as a map and then makes sure unmarshalling also gives a map
type MapOrString map[string]string
-// The display name can either be a map or a string in the server list
+// UnmarshalJSON unmarshals the display name. It can either be a map or a string in the server list
// Unmarshal it by first trying a string and then the map.
func (displayName *MapOrString) UnmarshalJSON(data []byte) error {
var displayNameString string