summaryrefslogtreecommitdiffstats
path: root/modules/auth/pam
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/pam')
-rw-r--r--modules/auth/pam/pam.go5
-rw-r--r--modules/auth/pam/pam_stub.go5
-rw-r--r--modules/auth/pam/pam_test.go1
3 files changed, 7 insertions, 4 deletions
diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go
index f21602c6b5..73ecae0c2c 100644
--- a/modules/auth/pam/pam.go
+++ b/modules/auth/pam/pam.go
@@ -1,9 +1,10 @@
-// +build pam
-
// 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.
+//go:build pam
+// +build pam
+
package pam
import (
diff --git a/modules/auth/pam/pam_stub.go b/modules/auth/pam/pam_stub.go
index 02d8da3c57..815ccf2b0e 100644
--- a/modules/auth/pam/pam_stub.go
+++ b/modules/auth/pam/pam_stub.go
@@ -1,9 +1,10 @@
-// +build !pam
-
// 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.
+//go:build !pam
+// +build !pam
+
package pam
import (
diff --git a/modules/auth/pam/pam_test.go b/modules/auth/pam/pam_test.go
index fa16ff0fe7..d6d78a748b 100644
--- a/modules/auth/pam/pam_test.go
+++ b/modules/auth/pam/pam_test.go
@@ -1,3 +1,4 @@
+//go:build pam
// +build pam
// Copyright 2021 The Gitea Authors. All rights reserved.