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

Run gofmt on doctl's codebase #866

Closed
bentranter opened this issue Oct 5, 2020 · 1 comment
Closed

Run gofmt on doctl's codebase #866

bentranter opened this issue Oct 5, 2020 · 1 comment

Comments

@bentranter
Copy link
Member

@bentranter bentranter commented Oct 5, 2020

Overview

Right now, Go Report Card reports that we have so gofmt failures in our codebase.

Typically, these can fixed by running gofmt -s -w ./ from the root of the project.

How to fix it

  1. Clone this repo.
  2. If you haven't already, install Go through their official installer.
  3. From the root of this project, run gofmt -s -w ./. The -s flag is short for "simplify", and will make some changes to make the code simpler. The -w flag is short for "write", which means that the changes will be written to disk instead of shown in stdout.
  4. Open a pull request to this repo with your changes. If you want, mention this issue in your pull request by writing something like, "Closes #866" which will close this issue upon being merged.
@bentranter
Copy link
Member Author

@bentranter bentranter commented Oct 5, 2020

Closed in #868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant