writeas / go-writeas

Go client for the Write.as API
MIT License
22 stars 11 forks source link

collection: Add support for deletion #13

Closed abhinav closed 5 years ago

abhinav commented 5 years ago

This adds support for deleting collections.

Resolves #1.

thebaer commented 5 years ago

Thanks for contributing this!

I un-did the changes making parameters a struct, because I'd like to enforce the collection alias requirement. I'd say we could add DeleteCollectionParams as a second argument, but since we have no practical use for them right now (and maybe they'd end up being the same parameters as another operation), I'm okay with leaving them out, and potentially making breaking changes in the future.