From fa40f52302dfc5799bfce6d7b8f0aaf96f79936d Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 8 Dec 2016 22:04:22 +0000 Subject: [PATCH] Place build instruction before package name --- db/gen.go | 4 ++-- sql/gen.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/gen.go b/db/gen.go index ef483acf..18d1368a 100644 --- a/db/gen.go +++ b/db/gen.go @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -package db - //+build generate +package db + //go:generate codecgen -o db.gen.go db.go diff --git a/sql/gen.go b/sql/gen.go index 48f3cb26..1a9ea482 100644 --- a/sql/gen.go +++ b/sql/gen.go @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -package sql - //+build generate +package sql + //go:generate codecgen -o ast.gen.go ast.go