From cb466d59bdc88b565dc7e164170972790f790329 Mon Sep 17 00:00:00 2001 From: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com> Date: Wed, 13 Dec 2023 11:44:20 -0700 Subject: [PATCH] GODRIVER-2392 Remove import comments in non-bson packages --- event/monitoring.go | 2 +- internal/benchmark/harness.go | 2 +- mongo/address/addr.go | 2 +- mongo/description/description.go | 2 +- mongo/gridfs/bucket.go | 2 +- mongo/mongo.go | 2 +- mongo/options/clientoptions.go | 2 +- mongo/readconcern/readconcern.go | 2 +- mongo/readpref/readpref.go | 2 +- mongo/writeconcern/writeconcern.go | 2 +- tag/tag.go | 2 +- version/version.go | 2 +- x/bsonx/bsoncore/bsoncore.go | 2 +- x/mongo/driver/connstring/connstring.go | 2 +- x/mongo/driver/driver.go | 2 +- x/mongo/driver/session/client_session.go | 2 +- x/mongo/driver/topology/topology.go | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/event/monitoring.go b/event/monitoring.go index ca142fc186..e7e8d0fedc 100644 --- a/event/monitoring.go +++ b/event/monitoring.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package event // import "go.mongodb.org/mongo-driver/event" +package event import ( "context" diff --git a/internal/benchmark/harness.go b/internal/benchmark/harness.go index 0c93879a86..4d0940bffc 100644 --- a/internal/benchmark/harness.go +++ b/internal/benchmark/harness.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package benchmark // import "go.mongodb.org/mongo-driver/benchmark" +package benchmark import ( "context" diff --git a/mongo/address/addr.go b/mongo/address/addr.go index 85cf12067c..e740ad9c8f 100644 --- a/mongo/address/addr.go +++ b/mongo/address/addr.go @@ -5,7 +5,7 @@ // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Package address provides structured representations of network addresses. -package address // import "go.mongodb.org/mongo-driver/mongo/address" +package address import ( "net" diff --git a/mongo/description/description.go b/mongo/description/description.go index e750e33b14..68b61a6249 100644 --- a/mongo/description/description.go +++ b/mongo/description/description.go @@ -5,7 +5,7 @@ // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Package description contains types and functions for describing the state of MongoDB clusters. -package description // import "go.mongodb.org/mongo-driver/mongo/description" +package description // Unknown is an unknown server or topology kind. const Unknown = 0 diff --git a/mongo/gridfs/bucket.go b/mongo/gridfs/bucket.go index 5c2a5e3e29..c053132c38 100644 --- a/mongo/gridfs/bucket.go +++ b/mongo/gridfs/bucket.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package gridfs // import "go.mongodb.org/mongo-driver/mongo/gridfs" +package gridfs import ( "bytes" diff --git a/mongo/mongo.go b/mongo/mongo.go index d0e321f7bf..43a22b7229 100644 --- a/mongo/mongo.go +++ b/mongo/mongo.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package mongo // import "go.mongodb.org/mongo-driver/mongo" +package mongo import ( "bytes" diff --git a/mongo/options/clientoptions.go b/mongo/options/clientoptions.go index 508a2e4601..9677ef75b0 100644 --- a/mongo/options/clientoptions.go +++ b/mongo/options/clientoptions.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package options // import "go.mongodb.org/mongo-driver/mongo/options" +package options import ( "bytes" diff --git a/mongo/readconcern/readconcern.go b/mongo/readconcern/readconcern.go index 8b387c3fd8..398d843012 100644 --- a/mongo/readconcern/readconcern.go +++ b/mongo/readconcern/readconcern.go @@ -8,7 +8,7 @@ // // For more information about MongoDB read concerns, see // https://www.mongodb.com/docs/manual/reference/read-concern/ -package readconcern // import "go.mongodb.org/mongo-driver/mongo/readconcern" +package readconcern import ( "errors" diff --git a/mongo/readpref/readpref.go b/mongo/readpref/readpref.go index e2a1d7f340..40c6ca76da 100644 --- a/mongo/readpref/readpref.go +++ b/mongo/readpref/readpref.go @@ -5,7 +5,7 @@ // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Package readpref defines read preferences for MongoDB queries. -package readpref // import "go.mongodb.org/mongo-driver/mongo/readpref" +package readpref import ( "bytes" diff --git a/mongo/writeconcern/writeconcern.go b/mongo/writeconcern/writeconcern.go index 76f8ee16bd..cf1e401284 100644 --- a/mongo/writeconcern/writeconcern.go +++ b/mongo/writeconcern/writeconcern.go @@ -8,7 +8,7 @@ // // For more information about MongoDB write concerns, see // https://www.mongodb.com/docs/manual/reference/write-concern/ -package writeconcern // import "go.mongodb.org/mongo-driver/mongo/writeconcern" +package writeconcern import ( "errors" diff --git a/tag/tag.go b/tag/tag.go index 4faff52549..39c11e0460 100644 --- a/tag/tag.go +++ b/tag/tag.go @@ -8,7 +8,7 @@ // // For more information about read preference tags, see // https://www.mongodb.com/docs/manual/core/read-preference-tags/ -package tag // import "go.mongodb.org/mongo-driver/tag" +package tag import ( "bytes" diff --git a/version/version.go b/version/version.go index ead90fa049..cf5c00c506 100644 --- a/version/version.go +++ b/version/version.go @@ -5,7 +5,7 @@ // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Package version defines the Go Driver version. -package version // import "go.mongodb.org/mongo-driver/version" +package version // Driver is the current version of the driver. var Driver = "v2.0.0-prerelease" diff --git a/x/bsonx/bsoncore/bsoncore.go b/x/bsonx/bsoncore/bsoncore.go index 88133293ea..2421c8ea76 100644 --- a/x/bsonx/bsoncore/bsoncore.go +++ b/x/bsonx/bsoncore/bsoncore.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package bsoncore // import "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" +package bsoncore import ( "bytes" diff --git a/x/mongo/driver/connstring/connstring.go b/x/mongo/driver/connstring/connstring.go index b3dc97cf38..6830aa89ae 100644 --- a/x/mongo/driver/connstring/connstring.go +++ b/x/mongo/driver/connstring/connstring.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package connstring // import "go.mongodb.org/mongo-driver/x/mongo/driver/connstring" +package connstring import ( "errors" diff --git a/x/mongo/driver/driver.go b/x/mongo/driver/driver.go index 83eaf99fa6..584bb6012a 100644 --- a/x/mongo/driver/driver.go +++ b/x/mongo/driver/driver.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package driver // import "go.mongodb.org/mongo-driver/x/mongo/driver" +package driver import ( "context" diff --git a/x/mongo/driver/session/client_session.go b/x/mongo/driver/session/client_session.go index f48348a687..35c2c3e89d 100644 --- a/x/mongo/driver/session/client_session.go +++ b/x/mongo/driver/session/client_session.go @@ -4,7 +4,7 @@ // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -package session // import "go.mongodb.org/mongo-driver/x/mongo/driver/session" +package session import ( "context" diff --git a/x/mongo/driver/topology/topology.go b/x/mongo/driver/topology/topology.go index ef320b3bfa..1b25ec9721 100644 --- a/x/mongo/driver/topology/topology.go +++ b/x/mongo/driver/topology/topology.go @@ -8,7 +8,7 @@ // of servers. This package is designed to expose enough inner workings of service discovery // and monitoring to allow low level applications to have fine grained control, while hiding // most of the detailed implementation of the algorithms. -package topology // import "go.mongodb.org/mongo-driver/x/mongo/driver/topology" +package topology import ( "context"