From 7bab6c76599fdfd34ea9bb064d871ed2be01d4c8 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 28 Nov 2022 12:50:23 +0100 Subject: Lint: Run godot fix Full command: golangci-lint run --disable-all -E godot --fix --- internal/wireguard/wireguard.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/wireguard') diff --git a/internal/wireguard/wireguard.go b/internal/wireguard/wireguard.go index d9bd974..7da2623 100644 --- a/internal/wireguard/wireguard.go +++ b/internal/wireguard/wireguard.go @@ -10,7 +10,7 @@ import ( ) // GenerateKey generates a WireGuard private key using wgctrl -// It returns an error if key generation failed +// It returns an error if key generation failed. func GenerateKey() (wgtypes.Key, error) { key, keyErr := wgtypes.GeneratePrivateKey() @@ -24,7 +24,7 @@ func GenerateKey() (wgtypes.Key, error) { } // ConfigAddKey takes the WireGuard configuration and adds the PrivateKey to the right section -// FIXME: Instead of doing a regex replace, decide if we should use a parser +// FIXME: Instead of doing a regex replace, decide if we should use a parser. func ConfigAddKey(config string, key wgtypes.Key) string { interfaceSection := "[Interface]" InterfaceSectionEscaped := regexp.QuoteMeta(interfaceSection) -- cgit v1.2.3