From 74e36f0ead717105f26087c2cab08b41ba5a7ce8 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Feb 2024 19:18:05 +0100 Subject: All: Document everything to pass revive lint --- types/discovery/discovery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'types/discovery') 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 -- cgit v1.2.3