-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor based on Google's Go style guide
Adjust the existing code base based on hints from Google's style guide, found at <https://google.github.io/styleguide/go>. The goal isn't for this code base to perfectly match that style guide, rather to take inspiration and incrementally improve the code base. Only guidelines which I think make sense were adopted. In total, three main points are included here: https://google.github.io/styleguide/go/decisions#named-result-parameters for cleaner APIs. (I actually found this to highlight potential problems in the code base in certain cases, such as with `extractScript` (not addressed)). https://google.github.io/styleguide/go/decisions#got-before-want for more standard test structure. https://google.github.io/styleguide/go/decisions#use-q for better string formatting. Signed-off-by: Eric Cornelissen <ericornelissen@gmail.com>
- Loading branch information
1 parent
aea16c1
commit fa28274
Showing
12 changed files
with
147 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.