Skip to content

lang: Add file function for reading files#365

Closed
aequitas wants to merge 2 commits intopurpleidea:masterfrom
aequitas:file_function
Closed

lang: Add file function for reading files#365
aequitas wants to merge 2 commits intopurpleidea:masterfrom
aequitas:file_function

Conversation

@aequitas
Copy link
Contributor

@aequitas aequitas commented Feb 27, 2018

@aequitas aequitas force-pushed the file_function branch 3 times, most recently from 5db478b to 0a400d6 Compare February 27, 2018 19:54
@aequitas aequitas changed the title lang: Add file function for reading files [wip] lang: Add file function for reading files Feb 27, 2018
import (
"io/ioutil"

errwrap "github.com/pkg/errors"
Copy link
Owner

@purpleidea purpleidea Feb 27, 2018

Choose a reason for hiding this comment

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

third-party packages should be in third group at the end of imports

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is what goimports makes of it, can we put this rule into a config file for goimports? I really don't want to be managing imports (and their sorting) by hand. A computer can do this just fine :)

Copy link
Owner

@purpleidea purpleidea Feb 27, 2018

Choose a reason for hiding this comment

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

¯\_(ツ)_/¯

I thought it did do this. If not, it's a bug, missing feature, or a property not explicitly enforced.
It is the common approach we use here and in is seen in many other projects too.

@aequitas aequitas force-pushed the file_function branch 17 times, most recently from 760db57 to 010a2ba Compare March 5, 2018 14:14
@aequitas aequitas changed the title [wip] lang: Add file function for reading files lang: Add file function for reading files Mar 5, 2018
@aequitas
Copy link
Contributor Author

#368 (comment)

@aequitas aequitas closed this Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants