From c5cc07900c67c2c8b565758dc4a66bc36b8cd7a9 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 6 Oct 2023 13:49:39 +0700 Subject: all: add task linter and fix all warnings We use revive [1], fieldalignment [2], and shadow [3] as linters. [1] https://github.com/mgechev/revive [2] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/fieldalignment/cmd/fieldalignment [3] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/shadow/cmd/shadow --- gotp.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gotp.go') diff --git a/gotp.go b/gotp.go index 0c44adf..51ed63b 100644 --- a/gotp.go +++ b/gotp.go @@ -1,6 +1,7 @@ // SPDX-FileCopyrightText: 2021 M. Shulhan // SPDX-License-Identifier: GPL-3.0-or-later +// Package gotp core library for building gotp CLI. package gotp import ( @@ -24,15 +25,14 @@ const ( providerNameAegis = `aegis` ) -var ( - Version = `0.3.1` -) +// Version define the latest version of this module and gotp CLI. +var Version = `0.3.1` // normalizeLabel convert non alpha number, hyphen, underscore, or period // characters into `-`. func normalizeLabel(in string) (out string) { var ( - replacement rune = '-' + replacement = '-' buf strings.Builder r rune -- cgit v1.3