From 15c2eddad99d84302f50d8b10214b181a880c4fe Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Thu, 25 Jul 2024 19:48:22 +0300 Subject: [PATCH] Remove the outdated build constraint `// +build` --- attachments123_test.go | 1 - changes123_test.go | 1 - couchdb/chttp/chttp_js_test.go | 1 - couchdb/main_js_test.go | 1 - couchdb/session_test.go | 1 - couchdb/test/couchdb_test.go | 1 - internal/nettest/nettest.go | 1 - internal/nettest/nettest_js.go | 1 - kiviktest/client/replicate_js.go | 1 - kiviktest/client/replicate_nonjs.go | 1 - kiviktest/go110testing.go | 1 - kiviktest/go118testing.go | 1 - kiviktest/go123testing.go | 1 - kiviktest/go18testing.go | 1 - pouchdb/README.md | 2 +- pouchdb/attachments.go | 1 - pouchdb/basicauth.go | 1 - pouchdb/bindings/errors.go | 1 - pouchdb/bindings/errors_test.go | 1 - pouchdb/bindings/nofind_test.go | 1 - pouchdb/bindings/pouchdb.go | 1 - pouchdb/bindings/poucherr/poucherr.go | 1 - pouchdb/bindings/recover.go | 1 - pouchdb/bulk.go | 1 - pouchdb/changes.go | 1 - pouchdb/changes_test.go | 1 - pouchdb/db.go | 1 - pouchdb/db_test.go | 1 - pouchdb/doc.go | 2 +- pouchdb/find.go | 1 - pouchdb/find_test.go | 1 - pouchdb/indexeddb/purge_test.go | 1 - pouchdb/internal/pouchver.go | 1 - pouchdb/js.go | 1 - pouchdb/pouchdb.go | 1 - pouchdb/replication.go | 1 - pouchdb/replicationEvents.go | 1 - pouchdb/rows.go | 1 - pouchdb/test/pouchdb_test.go | 1 - pouchdb/test/test.go | 1 - replicate_live_test.go | 1 - resultset123_test.go | 1 - updates123_test.go | 1 - x/fsdb/test/fs_test.go | 1 - x/kivikd/auth.go | 1 - x/kivikd/auth/cookie/cookie.go | 1 - x/kivikd/auth/cookie/cookie_test.go | 1 - x/kivikd/authdb/authgroup/authgroup.go | 1 - x/kivikd/authdb/authgroup/authgroup_test.go | 1 - x/kivikd/authdb/confadmin/confadmin.go | 1 - x/kivikd/authdb/confadmin/confadmin_test.go | 1 - x/kivikd/authdb/couchauth/invalidurl_test.go | 1 - x/kivikd/conf/conf.go | 1 - x/kivikd/conf/conf_test.go | 1 - x/kivikd/context.go | 1 - x/kivikd/cookies.go | 1 - x/kivikd/cookies_test.go | 1 - x/kivikd/couchserver/alldbs.go | 1 - x/kivikd/couchserver/alldbs_test.go | 1 - x/kivikd/couchserver/context.go | 1 - x/kivikd/couchserver/context_test.go | 1 - x/kivikd/couchserver/couchserver.go | 1 - x/kivikd/couchserver/couchserver_test.go | 1 - x/kivikd/couchserver/db.go | 1 - x/kivikd/couchserver/db_test.go | 1 - x/kivikd/couchserver/errors.go | 1 - x/kivikd/couchserver/errors_test.go | 1 - x/kivikd/couchserver/favicon.go | 1 - x/kivikd/couchserver/favicon_test.go | 1 - x/kivikd/couchserver/root.go | 1 - x/kivikd/couchserver/root_test.go | 1 - x/kivikd/couchserver/session.go | 1 - x/kivikd/couchserver/session_test.go | 1 - x/kivikd/formbind.go | 1 - x/kivikd/logger.go | 1 - x/kivikd/logger_test.go | 1 - x/kivikd/params.go | 1 - x/kivikd/routes.go | 1 - x/kivikd/serve.go | 1 - x/kivikd/serve_test.go | 1 - x/kivikd/session.go | 1 - x/kivikd/test/server_test.go | 1 - x/kivikd/test/test.go | 1 - x/memorydb/rand.go | 1 - x/memorydb/rand_17.go | 1 - x/server/auth.go | 1 - x/server/bind.go | 1 - x/server/cluster.go | 1 - x/server/cluster_test.go | 1 - x/server/config.go | 1 - x/server/db.go | 1 - x/server/db_test.go | 1 - x/server/docs.go | 1 - x/server/errors.go | 1 - x/server/middleware.go | 1 - x/server/options.go | 1 - x/server/security.go | 1 - x/server/server.go | 1 - x/server/server_test.go | 1 - x/server/stats.go | 1 - x/server/userstore.go | 1 - x/server/utils.go | 1 - x/server/uuid.go | 1 - x/sqlite/changes_test.go | 1 - x/sqlite/collation_test.go | 1 - x/sqlite/common_test.go | 1 - x/sqlite/db_test.go | 1 - x/sqlite/delete_test.go | 1 - x/sqlite/deleteattachment_test.go | 1 - x/sqlite/designdocs_test.go | 1 - x/sqlite/get_test.go | 1 - x/sqlite/getattachment_test.go | 1 - x/sqlite/getattachmentmeta_test.go | 1 - x/sqlite/getrev_test.go | 1 - x/sqlite/json_test.go | 1 - x/sqlite/localdocs_test.go | 1 - x/sqlite/openrevs_test.go | 1 - x/sqlite/purge_test.go | 1 - x/sqlite/put_designdocs_test.go | 1 - x/sqlite/put_test.go | 1 - x/sqlite/putattachment_test.go | 1 - x/sqlite/query_test.go | 1 - x/sqlite/reduce_test.go | 1 - x/sqlite/revsdiff_test.go | 1 - x/sqlite/sqlite_test.go | 1 - x/sqlite/templ.go | 1 - x/sqlite/util_test.go | 1 - x/sqlite/views_test.go | 1 - 128 files changed, 2 insertions(+), 128 deletions(-) diff --git a/attachments123_test.go b/attachments123_test.go index 6a3ebf26b..bc6390caf 100644 --- a/attachments123_test.go +++ b/attachments123_test.go @@ -11,7 +11,6 @@ // the License. //go:build go1.23 -// +build go1.23 package kivik diff --git a/changes123_test.go b/changes123_test.go index bf1d1e525..87874eceb 100644 --- a/changes123_test.go +++ b/changes123_test.go @@ -11,7 +11,6 @@ // the License. //go:build go1.23 -// +build go1.23 package kivik diff --git a/couchdb/chttp/chttp_js_test.go b/couchdb/chttp/chttp_js_test.go index c8a3c86f1..f43b5f189 100644 --- a/couchdb/chttp/chttp_js_test.go +++ b/couchdb/chttp/chttp_js_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package chttp diff --git a/couchdb/main_js_test.go b/couchdb/main_js_test.go index eb4f8723a..1154a27c6 100644 --- a/couchdb/main_js_test.go +++ b/couchdb/main_js_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package couchdb diff --git a/couchdb/session_test.go b/couchdb/session_test.go index 97cb50269..2a0a59fc0 100644 --- a/couchdb/session_test.go +++ b/couchdb/session_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js // GopherJS can't run a test server diff --git a/couchdb/test/couchdb_test.go b/couchdb/test/couchdb_test.go index 7f2d5ac1f..da9adea66 100644 --- a/couchdb/test/couchdb_test.go +++ b/couchdb/test/couchdb_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package test diff --git a/internal/nettest/nettest.go b/internal/nettest/nettest.go index d4997fdf1..a73390010 100644 --- a/internal/nettest/nettest.go +++ b/internal/nettest/nettest.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js // Package nettest wraps [httptest.NewServer] to skip when called from GopherJS. package nettest diff --git a/internal/nettest/nettest_js.go b/internal/nettest/nettest_js.go index 4871b44aa..2932a7b78 100644 --- a/internal/nettest/nettest_js.go +++ b/internal/nettest/nettest_js.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js // Package nettest wraps [httptest.NewServer] to skip when called from GopherJS. package nettest diff --git a/kiviktest/client/replicate_js.go b/kiviktest/client/replicate_js.go index 31495b679..e5bd61054 100644 --- a/kiviktest/client/replicate_js.go +++ b/kiviktest/client/replicate_js.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package client diff --git a/kiviktest/client/replicate_nonjs.go b/kiviktest/client/replicate_nonjs.go index 9163c04ad..eec110d65 100644 --- a/kiviktest/client/replicate_nonjs.go +++ b/kiviktest/client/replicate_nonjs.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package client diff --git a/kiviktest/go110testing.go b/kiviktest/go110testing.go index 99003f358..65da88498 100644 --- a/kiviktest/go110testing.go +++ b/kiviktest/go110testing.go @@ -11,7 +11,6 @@ // the License. //go:build go1.10 && !go1.18 -// +build go1.10,!go1.18 package kiviktest diff --git a/kiviktest/go118testing.go b/kiviktest/go118testing.go index 2d9cc5e8f..7f8a8eddf 100644 --- a/kiviktest/go118testing.go +++ b/kiviktest/go118testing.go @@ -11,7 +11,6 @@ // the License. //go:build go1.18 && !go1.23 -// +build go1.18,!go1.23 package kiviktest diff --git a/kiviktest/go123testing.go b/kiviktest/go123testing.go index c2ceff564..f4784bdc0 100644 --- a/kiviktest/go123testing.go +++ b/kiviktest/go123testing.go @@ -11,7 +11,6 @@ // the License. //go:build go1.23 -// +build go1.23 package kiviktest diff --git a/kiviktest/go18testing.go b/kiviktest/go18testing.go index 05686fb0e..b3606daa1 100644 --- a/kiviktest/go18testing.go +++ b/kiviktest/go18testing.go @@ -11,7 +11,6 @@ // the License. //go:build go1.8 && !go1.9 -// +build go1.8,!go1.9 package kiviktest diff --git a/pouchdb/README.md b/pouchdb/README.md index b129d16d9..eb1f07190 100644 --- a/pouchdb/README.md +++ b/pouchdb/README.md @@ -22,7 +22,7 @@ interface. You must import the driver and can then use the full [`Kivik`](http://pkg.go.dev/github.com/go-kivik/kivik/v4) API. ```go -// +build js +//go:build js package main diff --git a/pouchdb/attachments.go b/pouchdb/attachments.go index f8170c879..f8487eb5a 100644 --- a/pouchdb/attachments.go +++ b/pouchdb/attachments.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/basicauth.go b/pouchdb/basicauth.go index fc93d890f..649ae4185 100644 --- a/pouchdb/basicauth.go +++ b/pouchdb/basicauth.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/bindings/errors.go b/pouchdb/bindings/errors.go index 9e141348e..edba720ff 100644 --- a/pouchdb/bindings/errors.go +++ b/pouchdb/bindings/errors.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package bindings diff --git a/pouchdb/bindings/errors_test.go b/pouchdb/bindings/errors_test.go index 2149b530a..a0a562dae 100644 --- a/pouchdb/bindings/errors_test.go +++ b/pouchdb/bindings/errors_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package bindings diff --git a/pouchdb/bindings/nofind_test.go b/pouchdb/bindings/nofind_test.go index d60732456..8fd713845 100644 --- a/pouchdb/bindings/nofind_test.go +++ b/pouchdb/bindings/nofind_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package bindings diff --git a/pouchdb/bindings/pouchdb.go b/pouchdb/bindings/pouchdb.go index 2c55a6d98..d1851a709 100644 --- a/pouchdb/bindings/pouchdb.go +++ b/pouchdb/bindings/pouchdb.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js // Package bindings provides minimal GopherJS bindings around the PouchDB // library. (https://pouchdb.com/api.html) diff --git a/pouchdb/bindings/poucherr/poucherr.go b/pouchdb/bindings/poucherr/poucherr.go index c762cf72d..f2d900771 100644 --- a/pouchdb/bindings/poucherr/poucherr.go +++ b/pouchdb/bindings/poucherr/poucherr.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js // Package poucherr exists only for the purpose of testing the PouchDB binding's // handling of PouchDB-specific error messages. This Go package is empty, the diff --git a/pouchdb/bindings/recover.go b/pouchdb/bindings/recover.go index a7e1d00d6..061fe4457 100644 --- a/pouchdb/bindings/recover.go +++ b/pouchdb/bindings/recover.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package bindings diff --git a/pouchdb/bulk.go b/pouchdb/bulk.go index 06db7a0c3..dda888167 100644 --- a/pouchdb/bulk.go +++ b/pouchdb/bulk.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/changes.go b/pouchdb/changes.go index 659b6b0b7..de52e1547 100644 --- a/pouchdb/changes.go +++ b/pouchdb/changes.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/changes_test.go b/pouchdb/changes_test.go index 1bbe92ec2..e0ab6c9c7 100644 --- a/pouchdb/changes_test.go +++ b/pouchdb/changes_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/db.go b/pouchdb/db.go index c4281caa8..919dd7096 100644 --- a/pouchdb/db.go +++ b/pouchdb/db.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/db_test.go b/pouchdb/db_test.go index 955972ced..bca73bbfc 100644 --- a/pouchdb/db_test.go +++ b/pouchdb/db_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/doc.go b/pouchdb/doc.go index d16c2ea4c..54c0ab7c1 100644 --- a/pouchdb/doc.go +++ b/pouchdb/doc.go @@ -21,7 +21,7 @@ Use the `pouch` driver name when using this driver. The DSN should be the blank string for local database connections, or a full URL, including any required credentials, when connecting to a remote database. - // +build js + //go:build js package main diff --git a/pouchdb/find.go b/pouchdb/find.go index 32067976f..2b648053c 100644 --- a/pouchdb/find.go +++ b/pouchdb/find.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/find_test.go b/pouchdb/find_test.go index 9bf9d5448..91cac6302 100644 --- a/pouchdb/find_test.go +++ b/pouchdb/find_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/indexeddb/purge_test.go b/pouchdb/indexeddb/purge_test.go index f0f84b38c..459e64018 100644 --- a/pouchdb/indexeddb/purge_test.go +++ b/pouchdb/indexeddb/purge_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package indexeddb diff --git a/pouchdb/internal/pouchver.go b/pouchdb/internal/pouchver.go index 4e8f5472c..947abf183 100644 --- a/pouchdb/internal/pouchver.go +++ b/pouchdb/internal/pouchver.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package internal diff --git a/pouchdb/js.go b/pouchdb/js.go index 46a008b38..625387164 100644 --- a/pouchdb/js.go +++ b/pouchdb/js.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package pouchdb diff --git a/pouchdb/pouchdb.go b/pouchdb/pouchdb.go index 03c38fdf7..6158ac1e1 100644 --- a/pouchdb/pouchdb.go +++ b/pouchdb/pouchdb.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/replication.go b/pouchdb/replication.go index 2d1294568..c297e690f 100644 --- a/pouchdb/replication.go +++ b/pouchdb/replication.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/replicationEvents.go b/pouchdb/replicationEvents.go index f62840241..5f7f36545 100644 --- a/pouchdb/replicationEvents.go +++ b/pouchdb/replicationEvents.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/rows.go b/pouchdb/rows.go index 90788f7d5..853efc4de 100644 --- a/pouchdb/rows.go +++ b/pouchdb/rows.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package pouchdb diff --git a/pouchdb/test/pouchdb_test.go b/pouchdb/test/pouchdb_test.go index 81a7afbfa..c7d60a9c2 100644 --- a/pouchdb/test/pouchdb_test.go +++ b/pouchdb/test/pouchdb_test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js package test diff --git a/pouchdb/test/test.go b/pouchdb/test/test.go index 5e050b21d..c5f02d44a 100644 --- a/pouchdb/test/test.go +++ b/pouchdb/test/test.go @@ -11,7 +11,6 @@ // the License. //go:build js -// +build js // Package test provides PouchDB integration tests. package test diff --git a/replicate_live_test.go b/replicate_live_test.go index 1191a09b9..480df7fd4 100644 --- a/replicate_live_test.go +++ b/replicate_live_test.go @@ -13,7 +13,6 @@ // TODO: Try to re-enable these tests when we're on a newer version of GopherJS. //go:build !js -// +build !js package kivik_test diff --git a/resultset123_test.go b/resultset123_test.go index 77cecd63d..21a3b6b43 100644 --- a/resultset123_test.go +++ b/resultset123_test.go @@ -11,7 +11,6 @@ // the License. //go:build go1.23 -// +build go1.23 package kivik diff --git a/updates123_test.go b/updates123_test.go index ef1e159fc..8344d4ac7 100644 --- a/updates123_test.go +++ b/updates123_test.go @@ -11,7 +11,6 @@ // the License. //go:build go1.23 -// +build go1.23 package kivik diff --git a/x/fsdb/test/fs_test.go b/x/fsdb/test/fs_test.go index 55238c71e..21818909a 100644 --- a/x/fsdb/test/fs_test.go +++ b/x/fsdb/test/fs_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package test diff --git a/x/kivikd/auth.go b/x/kivikd/auth.go index 57e0b85ae..8b68e9ac9 100644 --- a/x/kivikd/auth.go +++ b/x/kivikd/auth.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/auth/cookie/cookie.go b/x/kivikd/auth/cookie/cookie.go index 4c6117100..70f236a6a 100644 --- a/x/kivikd/auth/cookie/cookie.go +++ b/x/kivikd/auth/cookie/cookie.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js // Package cookie provides standard CouchDB cookie auth as described at // http://docs.couchdb.org/en/2.0.0/api/server/authn.html#cookie-authentication diff --git a/x/kivikd/auth/cookie/cookie_test.go b/x/kivikd/auth/cookie/cookie_test.go index da2780df9..1a3ccd53f 100644 --- a/x/kivikd/auth/cookie/cookie_test.go +++ b/x/kivikd/auth/cookie/cookie_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package cookie diff --git a/x/kivikd/authdb/authgroup/authgroup.go b/x/kivikd/authdb/authgroup/authgroup.go index 86336fc5b..d8d09c02c 100644 --- a/x/kivikd/authdb/authgroup/authgroup.go +++ b/x/kivikd/authdb/authgroup/authgroup.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package authgroup diff --git a/x/kivikd/authdb/authgroup/authgroup_test.go b/x/kivikd/authdb/authgroup/authgroup_test.go index b1605295b..37420aa31 100644 --- a/x/kivikd/authdb/authgroup/authgroup_test.go +++ b/x/kivikd/authdb/authgroup/authgroup_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package authgroup diff --git a/x/kivikd/authdb/confadmin/confadmin.go b/x/kivikd/authdb/confadmin/confadmin.go index 829914204..c5ff4f569 100644 --- a/x/kivikd/authdb/confadmin/confadmin.go +++ b/x/kivikd/authdb/confadmin/confadmin.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package confadmin diff --git a/x/kivikd/authdb/confadmin/confadmin_test.go b/x/kivikd/authdb/confadmin/confadmin_test.go index 55866528e..d74480cec 100644 --- a/x/kivikd/authdb/confadmin/confadmin_test.go +++ b/x/kivikd/authdb/confadmin/confadmin_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package confadmin diff --git a/x/kivikd/authdb/couchauth/invalidurl_test.go b/x/kivikd/authdb/couchauth/invalidurl_test.go index bea26f932..b3e4ca3a1 100644 --- a/x/kivikd/authdb/couchauth/invalidurl_test.go +++ b/x/kivikd/authdb/couchauth/invalidurl_test.go @@ -1,5 +1,4 @@ //go:build 1.8 -// +build 1.8 package couchauth diff --git a/x/kivikd/conf/conf.go b/x/kivikd/conf/conf.go index 46a3c0ec3..835f545ef 100644 --- a/x/kivikd/conf/conf.go +++ b/x/kivikd/conf/conf.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package conf diff --git a/x/kivikd/conf/conf_test.go b/x/kivikd/conf/conf_test.go index c0d72cbfc..bd9328504 100644 --- a/x/kivikd/conf/conf_test.go +++ b/x/kivikd/conf/conf_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package conf diff --git a/x/kivikd/context.go b/x/kivikd/context.go index 7b09279e2..550a74194 100644 --- a/x/kivikd/context.go +++ b/x/kivikd/context.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/cookies.go b/x/kivikd/cookies.go index 9c50b83e7..11e2d3cd2 100644 --- a/x/kivikd/cookies.go +++ b/x/kivikd/cookies.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/cookies_test.go b/x/kivikd/cookies_test.go index 1c0a7cf47..9ade89340 100644 --- a/x/kivikd/cookies_test.go +++ b/x/kivikd/cookies_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/couchserver/alldbs.go b/x/kivikd/couchserver/alldbs.go index e70321923..cf68e2fcf 100644 --- a/x/kivikd/couchserver/alldbs.go +++ b/x/kivikd/couchserver/alldbs.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/alldbs_test.go b/x/kivikd/couchserver/alldbs_test.go index 0fa25dd27..af591e1a0 100644 --- a/x/kivikd/couchserver/alldbs_test.go +++ b/x/kivikd/couchserver/alldbs_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/context.go b/x/kivikd/couchserver/context.go index 05a2d39e5..34bb0487e 100644 --- a/x/kivikd/couchserver/context.go +++ b/x/kivikd/couchserver/context.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/context_test.go b/x/kivikd/couchserver/context_test.go index d01027c73..243fb7015 100644 --- a/x/kivikd/couchserver/context_test.go +++ b/x/kivikd/couchserver/context_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/couchserver.go b/x/kivikd/couchserver/couchserver.go index 674314629..34751e2c6 100644 --- a/x/kivikd/couchserver/couchserver.go +++ b/x/kivikd/couchserver/couchserver.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/couchserver_test.go b/x/kivikd/couchserver/couchserver_test.go index 13a945503..83b86f17c 100644 --- a/x/kivikd/couchserver/couchserver_test.go +++ b/x/kivikd/couchserver/couchserver_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/db.go b/x/kivikd/couchserver/db.go index 9fd2bd608..c28af1f49 100644 --- a/x/kivikd/couchserver/db.go +++ b/x/kivikd/couchserver/db.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/db_test.go b/x/kivikd/couchserver/db_test.go index e0ed4b11a..599ae626c 100644 --- a/x/kivikd/couchserver/db_test.go +++ b/x/kivikd/couchserver/db_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/errors.go b/x/kivikd/couchserver/errors.go index c53d07ae7..48b4b11ec 100644 --- a/x/kivikd/couchserver/errors.go +++ b/x/kivikd/couchserver/errors.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/errors_test.go b/x/kivikd/couchserver/errors_test.go index d5e98ad95..dcb1430c6 100644 --- a/x/kivikd/couchserver/errors_test.go +++ b/x/kivikd/couchserver/errors_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/favicon.go b/x/kivikd/couchserver/favicon.go index 57d5f5f61..5b9bc7ea7 100644 --- a/x/kivikd/couchserver/favicon.go +++ b/x/kivikd/couchserver/favicon.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/favicon_test.go b/x/kivikd/couchserver/favicon_test.go index 0ec3bf211..2f7f466c6 100644 --- a/x/kivikd/couchserver/favicon_test.go +++ b/x/kivikd/couchserver/favicon_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/root.go b/x/kivikd/couchserver/root.go index dc5f5a1b9..a00d791a8 100644 --- a/x/kivikd/couchserver/root.go +++ b/x/kivikd/couchserver/root.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/root_test.go b/x/kivikd/couchserver/root_test.go index c6e8a4be4..9b623d256 100644 --- a/x/kivikd/couchserver/root_test.go +++ b/x/kivikd/couchserver/root_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/session.go b/x/kivikd/couchserver/session.go index 2067ac7de..9fea62a91 100644 --- a/x/kivikd/couchserver/session.go +++ b/x/kivikd/couchserver/session.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/couchserver/session_test.go b/x/kivikd/couchserver/session_test.go index 30a26101f..e2937f6f0 100644 --- a/x/kivikd/couchserver/session_test.go +++ b/x/kivikd/couchserver/session_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package couchserver diff --git a/x/kivikd/formbind.go b/x/kivikd/formbind.go index 52ae41b00..9b83f5e92 100644 --- a/x/kivikd/formbind.go +++ b/x/kivikd/formbind.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/logger.go b/x/kivikd/logger.go index f834f8856..8adcd2909 100644 --- a/x/kivikd/logger.go +++ b/x/kivikd/logger.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/logger_test.go b/x/kivikd/logger_test.go index 11c1dd8d9..19c89f3da 100644 --- a/x/kivikd/logger_test.go +++ b/x/kivikd/logger_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/params.go b/x/kivikd/params.go index 52b754530..e86e42259 100644 --- a/x/kivikd/params.go +++ b/x/kivikd/params.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/routes.go b/x/kivikd/routes.go index 3cd441957..9e5440c35 100644 --- a/x/kivikd/routes.go +++ b/x/kivikd/routes.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/serve.go b/x/kivikd/serve.go index cdf8b9b4d..80e1d63e4 100644 --- a/x/kivikd/serve.go +++ b/x/kivikd/serve.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/serve_test.go b/x/kivikd/serve_test.go index 9e7557fbd..32298e31e 100644 --- a/x/kivikd/serve_test.go +++ b/x/kivikd/serve_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/session.go b/x/kivikd/session.go index f7c3d6734..9b0d6c064 100644 --- a/x/kivikd/session.go +++ b/x/kivikd/session.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package kivikd diff --git a/x/kivikd/test/server_test.go b/x/kivikd/test/server_test.go index 0e4b7a1fe..c3fb5b9af 100644 --- a/x/kivikd/test/server_test.go +++ b/x/kivikd/test/server_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package test diff --git a/x/kivikd/test/test.go b/x/kivikd/test/test.go index 77591bde1..4f744e7a0 100644 --- a/x/kivikd/test/test.go +++ b/x/kivikd/test/test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package test diff --git a/x/memorydb/rand.go b/x/memorydb/rand.go index a7440320f..e623f8d99 100644 --- a/x/memorydb/rand.go +++ b/x/memorydb/rand.go @@ -11,7 +11,6 @@ // the License. //go:build go1.8 -// +build go1.8 package memorydb diff --git a/x/memorydb/rand_17.go b/x/memorydb/rand_17.go index b4636c701..2e77d0da3 100644 --- a/x/memorydb/rand_17.go +++ b/x/memorydb/rand_17.go @@ -1,5 +1,4 @@ //go:build go1.7 && !go1.8 -// +build go1.7,!go1.8 package memorydb diff --git a/x/server/auth.go b/x/server/auth.go index 820818318..43e4e34c9 100644 --- a/x/server/auth.go +++ b/x/server/auth.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/bind.go b/x/server/bind.go index 28d234815..e86bf7bc0 100644 --- a/x/server/bind.go +++ b/x/server/bind.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/cluster.go b/x/server/cluster.go index 1b04e6581..00418c2b4 100644 --- a/x/server/cluster.go +++ b/x/server/cluster.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/cluster_test.go b/x/server/cluster_test.go index bf4de630f..240875aa2 100644 --- a/x/server/cluster_test.go +++ b/x/server/cluster_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/config.go b/x/server/config.go index 97acc4c18..c55e7b0f4 100644 --- a/x/server/config.go +++ b/x/server/config.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/db.go b/x/server/db.go index b83ca059e..312eefe3d 100644 --- a/x/server/db.go +++ b/x/server/db.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/db_test.go b/x/server/db_test.go index f819198dd..386537ca4 100644 --- a/x/server/db_test.go +++ b/x/server/db_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/docs.go b/x/server/docs.go index 943df97e6..df065cafd 100644 --- a/x/server/docs.go +++ b/x/server/docs.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/errors.go b/x/server/errors.go index 59147e690..0771d6720 100644 --- a/x/server/errors.go +++ b/x/server/errors.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/middleware.go b/x/server/middleware.go index 0dc33701e..2fc7d13f7 100644 --- a/x/server/middleware.go +++ b/x/server/middleware.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/options.go b/x/server/options.go index c42298ce4..33f0bf0f6 100644 --- a/x/server/options.go +++ b/x/server/options.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/security.go b/x/server/security.go index 79960626f..5d8222275 100644 --- a/x/server/security.go +++ b/x/server/security.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/server.go b/x/server/server.go index 624bc7911..f8baac60e 100644 --- a/x/server/server.go +++ b/x/server/server.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/server_test.go b/x/server/server_test.go index 89febdafe..5d2f5d6d3 100644 --- a/x/server/server_test.go +++ b/x/server/server_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/stats.go b/x/server/stats.go index 3c258d90e..aa923edfa 100644 --- a/x/server/stats.go +++ b/x/server/stats.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/userstore.go b/x/server/userstore.go index 3617c9699..44304f65e 100644 --- a/x/server/userstore.go +++ b/x/server/userstore.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/utils.go b/x/server/utils.go index fd535367f..e5af4b0a7 100644 --- a/x/server/utils.go +++ b/x/server/utils.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/server/uuid.go b/x/server/uuid.go index 8b27a875d..58a5a6ab8 100644 --- a/x/server/uuid.go +++ b/x/server/uuid.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package server diff --git a/x/sqlite/changes_test.go b/x/sqlite/changes_test.go index 55be9094b..0f3975284 100644 --- a/x/sqlite/changes_test.go +++ b/x/sqlite/changes_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/collation_test.go b/x/sqlite/collation_test.go index 56e9ad060..a69ec8a91 100644 --- a/x/sqlite/collation_test.go +++ b/x/sqlite/collation_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/common_test.go b/x/sqlite/common_test.go index e204dca0d..34e76cf9e 100644 --- a/x/sqlite/common_test.go +++ b/x/sqlite/common_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/db_test.go b/x/sqlite/db_test.go index e367b62c1..81eb1e31a 100644 --- a/x/sqlite/db_test.go +++ b/x/sqlite/db_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/delete_test.go b/x/sqlite/delete_test.go index 3d8fb0442..cd073fe7c 100644 --- a/x/sqlite/delete_test.go +++ b/x/sqlite/delete_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/deleteattachment_test.go b/x/sqlite/deleteattachment_test.go index 6c3bd1ce6..06a49de46 100644 --- a/x/sqlite/deleteattachment_test.go +++ b/x/sqlite/deleteattachment_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/designdocs_test.go b/x/sqlite/designdocs_test.go index 06e157f16..91fca2921 100644 --- a/x/sqlite/designdocs_test.go +++ b/x/sqlite/designdocs_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/get_test.go b/x/sqlite/get_test.go index 0f0990acd..956a99e3b 100644 --- a/x/sqlite/get_test.go +++ b/x/sqlite/get_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/getattachment_test.go b/x/sqlite/getattachment_test.go index 51155986d..092896975 100644 --- a/x/sqlite/getattachment_test.go +++ b/x/sqlite/getattachment_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/getattachmentmeta_test.go b/x/sqlite/getattachmentmeta_test.go index b42f70279..05060708a 100644 --- a/x/sqlite/getattachmentmeta_test.go +++ b/x/sqlite/getattachmentmeta_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/getrev_test.go b/x/sqlite/getrev_test.go index 4836db66a..80f80e6aa 100644 --- a/x/sqlite/getrev_test.go +++ b/x/sqlite/getrev_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/json_test.go b/x/sqlite/json_test.go index 1161040de..e8388dba3 100644 --- a/x/sqlite/json_test.go +++ b/x/sqlite/json_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/localdocs_test.go b/x/sqlite/localdocs_test.go index 260f4ac8d..7d356ab76 100644 --- a/x/sqlite/localdocs_test.go +++ b/x/sqlite/localdocs_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/openrevs_test.go b/x/sqlite/openrevs_test.go index 3c964a049..42e82e9dc 100644 --- a/x/sqlite/openrevs_test.go +++ b/x/sqlite/openrevs_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/purge_test.go b/x/sqlite/purge_test.go index 27df3e80f..2a294b0e7 100644 --- a/x/sqlite/purge_test.go +++ b/x/sqlite/purge_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/put_designdocs_test.go b/x/sqlite/put_designdocs_test.go index abc0d79ca..11751d1f0 100644 --- a/x/sqlite/put_designdocs_test.go +++ b/x/sqlite/put_designdocs_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/put_test.go b/x/sqlite/put_test.go index fda3af9c5..6fd2e6e38 100644 --- a/x/sqlite/put_test.go +++ b/x/sqlite/put_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/putattachment_test.go b/x/sqlite/putattachment_test.go index e9ac16ae9..be6b464c0 100644 --- a/x/sqlite/putattachment_test.go +++ b/x/sqlite/putattachment_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/query_test.go b/x/sqlite/query_test.go index 7058a2e84..2056ed362 100644 --- a/x/sqlite/query_test.go +++ b/x/sqlite/query_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/reduce_test.go b/x/sqlite/reduce_test.go index 9a7cb5750..65b8cb011 100644 --- a/x/sqlite/reduce_test.go +++ b/x/sqlite/reduce_test.go @@ -11,6 +11,5 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/revsdiff_test.go b/x/sqlite/revsdiff_test.go index 7b74b7284..69177b3e9 100644 --- a/x/sqlite/revsdiff_test.go +++ b/x/sqlite/revsdiff_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/sqlite_test.go b/x/sqlite/sqlite_test.go index 48b3e9859..f36121a3b 100644 --- a/x/sqlite/sqlite_test.go +++ b/x/sqlite/sqlite_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/templ.go b/x/sqlite/templ.go index 2e0f9e8d2..b16b19295 100644 --- a/x/sqlite/templ.go +++ b/x/sqlite/templ.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/util_test.go b/x/sqlite/util_test.go index dd75dc643..bfbf59598 100644 --- a/x/sqlite/util_test.go +++ b/x/sqlite/util_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite diff --git a/x/sqlite/views_test.go b/x/sqlite/views_test.go index 1c580e4f5..f7e49cb1c 100644 --- a/x/sqlite/views_test.go +++ b/x/sqlite/views_test.go @@ -11,7 +11,6 @@ // the License. //go:build !js -// +build !js package sqlite