Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api/database: Add the ability to delete layers #36

Merged
merged 1 commit into from
Dec 4, 2015
Merged

api/database: Add the ability to delete layers #36

merged 1 commit into from
Dec 4, 2015

Conversation

Quentin-M
Copy link
Contributor

No description provided.

@@ -131,6 +131,59 @@ func InsertLayer(layer *Layer) error {
return nil
}

// DeleteLayer delete the specified layer and every layers that are based on that one, recursively.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DeleteLayer deletes the specified layer and any child layers that are dependent on the specified layer.

Also, comments in Go are 80 chars per line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dang it. Such a pain in the butt to switch back and forth between 100C (Python) to 80C (Go).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use go-lint

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do use it through https://atom.io/packages/go-plus, automatically on save but it does not wrap comments / enforce line length afaik.

@jzelinskie
Copy link
Contributor

LGTM

Quentin-M pushed a commit that referenced this pull request Dec 4, 2015
api/database: Add the ability to delete layers
@Quentin-M Quentin-M merged commit 15bc682 into master Dec 4, 2015
@Quentin-M Quentin-M deleted the gc branch December 4, 2015 20:21
@jzelinskie jzelinskie added kind/feature request wishes for new functionality/docs reviewed/lgtm labels Mar 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature request wishes for new functionality/docs
Development

Successfully merging this pull request may close these issues.

None yet

2 participants