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/server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'types/server/server.go') diff --git a/types/server/server.go b/types/server/server.go index 5e1fa9b..1beb8fb 100644 --- a/types/server/server.go +++ b/types/server/server.go @@ -1,4 +1,4 @@ -// package server defines public types that have to deal with the VPN server +// Package server defines public types that have to deal with the VPN server package server import ( @@ -23,7 +23,7 @@ const ( TypeCustom ) -// This is here to support V1 configs which had the server type as a string +// UnmarshalJSON is set here here to support V1 configs which had the server type as a string func (t *Type) UnmarshalJSON(data []byte) error { // First try to just unmarshal the type var num int8 -- cgit v1.2.3