Comments (8)
@tbpg awscloud and gcpcloud are unlikely to be imported together, but some of the other ones (s3
, sql
, xray
) would collide with the provider-given packages.
While there's some stutter in the import path, I liken this to "path/filepath"
: the name file
would not be evocative enough of the package's purpose.
from go-cloud.
The naming collisions and readability arguments win out here, let's keep the status quo.
from go-cloud.
Those names are nicer for sure from a maintainer's point of view, but less descriptive from a user's point of view. A maintainer sees blob/fileblob
vs blob/file
but a user sees fileblob.Whatever
vs file.Whatever
. The latter is nicer for the maintainer but the former is nicer for the user.
from go-cloud.
I'm personally in favor of the renames as suggested. Assigning to @zombiezen and @shantuo for other votes.
from go-cloud.
But I understand @jadekler 's reservations. I think in the end, the idiomatic aspects outweigh the readability aspects, if the dev is having issues they can always alias the package.
from go-cloud.
aws/awscloud -> aws/cloud
gcp/gcpcloud -> gcp/cloud
These are the only two I might be concerned about. Would it be common for users to import both of these into a single package?
I'm thinking of this paragraph from https://blog.golang.org/package-names:
Avoid unnecessary package name collisions. While packages in different directories may have the same name, packages that are frequently used together should have distinct names. This reduces confusion and the need for local renaming in client code. For the same reason, avoid using the same name as popular standard packages like io or http.
from go-cloud.
What does usage look like? The calling code should help inform the package name. If it's an underscore import, then I agree w/ the proposal. If not, cloud
seems like an overly generic name for the import.
from go-cloud.
The calling code will not be using underscore imports; they will be referring to the provider sets inside the package (current examples are awscloud.Services
and awscloud.AWS
).
from go-cloud.
Related Issues (20)
- blob/gcsblob: anonymous bucket access follow up to #3302 HOT 1
- runtimevar: support `env` url HOT 2
- blob/azureblob: Using a SAS token results in "Signature fields not well formed" HOT 3
- Using AWS, how do we enable compression and decompression of upload and dwonload? HOT 5
- blob/s3: Support Server Side encryption settings in bucket url HOT 2
- docstore/mongodocstore: pauses before getMore HOT 3
- docstore/gcpfirestore: ought to support non-default databases HOT 4
- S3 Blob Incompatibility with AWS S3 Issues? HOT 3
- docstore: should support (in) comparison operator HOT 3
- pubsub: support NATS jetstream HOT 1
- pubsub/awssnssqs: duplicate key in map literal HOT 3
- blob/s3: Add content length parameter in signing URL HOT 3
- pubsub/azuresb: support workload identity auth method HOT 3
- secrets/hashivault: read token from file HOT 3
- pubsub/azuresb: sending a message when unauthorized hangs HOT 1
- New Project: Docstore Query Gen for Go CDK HOT 1
- RabbitPubSub Queue Connection Closes Unexpectedly with FailedPrecondition Error HOT 2
- all: Request for new tag including 'Offset' feature in docstore HOT 1
- docstore/mongodocstore: Error update with only unset or increment modifier (recurring issue)
- pubsub/ AWS MSK Support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-cloud.