aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Chen <u@gogs.io>2021-09-24 00:44:09 +0800
committerGitHub <noreply@github.com>2021-09-24 00:44:09 +0800
commitfa3d011415c21a6e4d2e6500d589ca17cf39090f (patch)
tree2dc9383f29c5b1a9d5eb51a71bd846fb165b85ea
parentb9a3626cad505b1dccd66a0b023263ef59134430 (diff)
chore: fix lint errors (#6620)
-rw-r--r--gogs.go1
-rw-r--r--internal/auth/pam/pam_stub.go1
-rw-r--r--internal/cmd/cert_stub.go2
3 files changed, 4 insertions, 0 deletions
diff --git a/gogs.go b/gogs.go
index 74458166..c602a95a 100644
--- a/gogs.go
+++ b/gogs.go
@@ -1,3 +1,4 @@
+//go:build go1.14
// +build go1.14
// Copyright 2014 The Gogs Authors. All rights reserved.
diff --git a/internal/auth/pam/pam_stub.go b/internal/auth/pam/pam_stub.go
index 9392eab5..65777fd2 100644
--- a/internal/auth/pam/pam_stub.go
+++ b/internal/auth/pam/pam_stub.go
@@ -1,3 +1,4 @@
+//go:build !pam
// +build !pam
// Copyright 2014 The Gogs Authors. All rights reserved.
diff --git a/internal/cmd/cert_stub.go b/internal/cmd/cert_stub.go
index 6164c83e..ddeb92b0 100644
--- a/internal/cmd/cert_stub.go
+++ b/internal/cmd/cert_stub.go
@@ -1,9 +1,11 @@
+//go:build !cert
// +build !cert
// Copyright 2009 The Go Authors. All rights reserved.
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
+
package cmd
import (