From 14f6d3a92ff4c2581e60ca036375d737de047335 Mon Sep 17 00:00:00 2001 From: Dale Hui Date: Fri, 10 Sep 2021 21:04:11 -0700 Subject: [PATCH] Update build constraints Issue caught by linter https://pkg.go.dev/go/build#hdr-Build_Constraints https://pkg.go.dev/cmd/go#hdr-Build_constraints https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md --- database/firebird/firebird.go | 1 + database/mysql/mysql.go | 1 + database/pgx/pgx.go | 1 + database/postgres/postgres.go | 1 + database/redshift/redshift.go | 1 + source/file/file_go116.go | 1 + source/iofs/example_test.go | 1 + source/iofs/iofs.go | 1 + source/iofs/iofs_test.go | 1 + 9 files changed, 9 insertions(+) diff --git a/database/firebird/firebird.go b/database/firebird/firebird.go index 41ccc33d3..9ee833649 100644 --- a/database/firebird/firebird.go +++ b/database/firebird/firebird.go @@ -1,3 +1,4 @@ +//go:build go1.9 // +build go1.9 package firebird diff --git a/database/mysql/mysql.go b/database/mysql/mysql.go index 5eb15ff94..14b15390e 100644 --- a/database/mysql/mysql.go +++ b/database/mysql/mysql.go @@ -1,3 +1,4 @@ +//go:build go1.9 // +build go1.9 package mysql diff --git a/database/pgx/pgx.go b/database/pgx/pgx.go index fe709ef04..2fffe54df 100644 --- a/database/pgx/pgx.go +++ b/database/pgx/pgx.go @@ -1,3 +1,4 @@ +//go:build go1.9 // +build go1.9 package pgx diff --git a/database/postgres/postgres.go b/database/postgres/postgres.go index d59bfb524..82919171d 100644 --- a/database/postgres/postgres.go +++ b/database/postgres/postgres.go @@ -1,3 +1,4 @@ +//go:build go1.9 // +build go1.9 package postgres diff --git a/database/redshift/redshift.go b/database/redshift/redshift.go index d4539b8a2..04bee121d 100644 --- a/database/redshift/redshift.go +++ b/database/redshift/redshift.go @@ -1,3 +1,4 @@ +//go:build go1.9 // +build go1.9 package redshift diff --git a/source/file/file_go116.go b/source/file/file_go116.go index 5203b4bdb..3e6bddcfd 100644 --- a/source/file/file_go116.go +++ b/source/file/file_go116.go @@ -1,3 +1,4 @@ +//go:build go1.16 // +build go1.16 package file diff --git a/source/iofs/example_test.go b/source/iofs/example_test.go index 87d4e568b..474fc633c 100644 --- a/source/iofs/example_test.go +++ b/source/iofs/example_test.go @@ -1,3 +1,4 @@ +//go:build go1.16 // +build go1.16 package iofs_test diff --git a/source/iofs/iofs.go b/source/iofs/iofs.go index f76e44387..dc934a5fe 100644 --- a/source/iofs/iofs.go +++ b/source/iofs/iofs.go @@ -1,3 +1,4 @@ +//go:build go1.16 // +build go1.16 package iofs diff --git a/source/iofs/iofs_test.go b/source/iofs/iofs_test.go index f885fe762..d5b0ea019 100644 --- a/source/iofs/iofs_test.go +++ b/source/iofs/iofs_test.go @@ -1,3 +1,4 @@ +//go:build go1.16 // +build go1.16 package iofs_test