From dab8761e576f4d259e65492e994a471387e2e232 Mon Sep 17 00:00:00 2001 From: John Weldon Date: Tue, 4 Apr 2023 18:06:07 -0700 Subject: [PATCH] Gofumpt (#38) --- ber_test.go | 4 ++-- generalizedTime_test.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ber_test.go b/ber_test.go index 23814bd..7218c0e 100644 --- a/ber_test.go +++ b/ber_test.go @@ -81,7 +81,7 @@ func TestInteger(t *testing.T) { } func TestString(t *testing.T) { - var value = "Hic sunt dracones" + value := "Hic sunt dracones" packet := NewString(ClassUniversal, TypePrimitive, TagOctetString, value, "String") @@ -150,7 +150,7 @@ func TestReadPacket(t *testing.T) { func TestBinaryInteger(t *testing.T) { // data src : http://luca.ntop.org/Teaching/Appunti/asn1.html 5.7 - var data = []struct { + data := []struct { v int64 e []byte }{ diff --git a/generalizedTime_test.go b/generalizedTime_test.go index 8391bc4..300c75c 100644 --- a/generalizedTime_test.go +++ b/generalizedTime_test.go @@ -13,12 +13,12 @@ func TestParseGeneralizedTime(t *testing.T) { }{ { "20170222190527Z", - time.Date(2017, time.Month(2), 22, 19, 05, 27, 0, time.UTC), + time.Date(2017, time.Month(2), 22, 19, 5, 27, 0, time.UTC), nil, }, { "201702221905Z", - time.Date(2017, time.Month(2), 22, 19, 05, 0, 0, time.UTC), + time.Date(2017, time.Month(2), 22, 19, 5, 0, 0, time.UTC), nil, }, { @@ -53,12 +53,12 @@ func TestParseGeneralizedTime(t *testing.T) { }, { "20170222190527.123Z", - time.Date(2017, time.Month(2), 22, 19, 05, 27, 123*1000*1000, time.UTC), + time.Date(2017, time.Month(2), 22, 19, 5, 27, 123*1000*1000, time.UTC), nil, }, { "20170222190527,123Z", - time.Date(2017, time.Month(2), 22, 19, 05, 27, 123*1000*1000, time.UTC), + time.Date(2017, time.Month(2), 22, 19, 5, 27, 123*1000*1000, time.UTC), nil, }, {