From 2be077cf40289876942b1c6342e537d5a0d3ceb9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 1 Nov 2021 22:40:50 -0600 Subject: [PATCH] refactor: update go:build syntax for go v1.17 --- assets/admin/assets.go | 3 ++- assets/admin/assets_dev.go | 2 +- assets/files/assets.go | 3 ++- assets/files/assets_dev.go | 2 +- internal/service/other.go | 2 +- internal/tools/tools.go | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/assets/admin/assets.go b/assets/admin/assets.go index d8a6b09..0dcccbd 100644 --- a/assets/admin/assets.go +++ b/assets/admin/assets.go @@ -1,4 +1,5 @@ -// +build !dev +//go:build !dev + //go:generate go run -mod vendor github.com/shurcooL/vfsgen/cmd/vfsgendev -source="git.rootprojects.org/root/telebit/assets/admin".AdminFS package admin diff --git a/assets/admin/assets_dev.go b/assets/admin/assets_dev.go index 60aa34a..a8408b8 100644 --- a/assets/admin/assets_dev.go +++ b/assets/admin/assets_dev.go @@ -1,4 +1,4 @@ -// +build dev +//go:build dev package admin diff --git a/assets/files/assets.go b/assets/files/assets.go index f3e6742..fa3bec0 100644 --- a/assets/files/assets.go +++ b/assets/files/assets.go @@ -1,4 +1,5 @@ -// +build !dev +//go:build !dev + //go:generate go run -mod vendor github.com/shurcooL/vfsgen/cmd/vfsgendev -source="git.rootprojects.org/root/telebit/assets/files".Assets package files diff --git a/assets/files/assets_dev.go b/assets/files/assets_dev.go index 328eda2..51e62c7 100644 --- a/assets/files/assets_dev.go +++ b/assets/files/assets_dev.go @@ -1,4 +1,4 @@ -// +build dev +//go:build dev package files diff --git a/internal/service/other.go b/internal/service/other.go index 4f4d1d4..28c7b62 100644 --- a/internal/service/other.go +++ b/internal/service/other.go @@ -1,4 +1,4 @@ -// +build !darwin,!linux,!windows +//go:build !darwin && !linux && !windows package service diff --git a/internal/tools/tools.go b/internal/tools/tools.go index 47c14b2..fba1a78 100644 --- a/internal/tools/tools.go +++ b/internal/tools/tools.go @@ -1,4 +1,4 @@ -// +build tools +//go:build tools // Package tools is a faux package for tracking dependencies that don't make it into the code package tools