diff --git a/gogs.go b/gogs.go index 744581665..c602a95af 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 9392eab53..65777fd23 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 6164c83e9..ddeb92b0d 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 (