From c9fb36e75971e787cd8490d4757721233ecdd3ba Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 15 Nov 2022 13:44:34 +0200 Subject: [PATCH] Fix some errors found by golangci-lint Fix some errors found by golangci-lint --- examples/vnet-udpproxy/main.go | 2 ++ utils/xor/xor_arm64.go | 1 + 2 files changed, 3 insertions(+) diff --git a/examples/vnet-udpproxy/main.go b/examples/vnet-udpproxy/main.go index c776d65..86d158a 100644 --- a/examples/vnet-udpproxy/main.go +++ b/examples/vnet-udpproxy/main.go @@ -1,3 +1,5 @@ +// Package main implements an example for the virtual Net +// UDP proxy. package main import ( diff --git a/utils/xor/xor_arm64.go b/utils/xor/xor_arm64.go index 607a18c..30b5770 100644 --- a/utils/xor/xor_arm64.go +++ b/utils/xor/xor_arm64.go @@ -8,6 +8,7 @@ package xor // XorBytes xors the bytes in a and b. The destination should have enough // space, otherwise xorBytes will panic. Returns the number of bytes xor'd. +// //revive:disable-next-line func XorBytes(dst, a, b []byte) int { n := len(a)