From 657973a17e08d158f45ab3ad0a2ec1c780415d2c Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Mon, 27 Dec 2021 11:33:17 +0900 Subject: [PATCH] Ignore lint error for mapIter --- internal/encoder/encoder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/encoder/encoder.go b/internal/encoder/encoder.go index 9254195..0785ed7 100644 --- a/internal/encoder/encoder.go +++ b/internal/encoder/encoder.go @@ -222,6 +222,7 @@ func (m *Mapslice) Swap(i, j int) { m.Items[i], m.Items[j] = m.Items[j], m.Items[i] } +//nolint:structcheck,unused type mapIter struct { key unsafe.Pointer elem unsafe.Pointer