-
Notifications
You must be signed in to change notification settings - Fork 10
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
add script for generating error constants #35
Conversation
This allows building outside og GOPATH
scripts/errors-const/main.go
Outdated
if err != nil { | ||
log.Fatal(err) | ||
} | ||
var keys []int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More descriptive variable names woulod be good. Examples/suggestions: o
--> opts
, f
--> outpFile
m
--> codeToDesc
, keys
--> codes
, etc.
@ORBAT I think this is ready for review |
Hey, how about reading the JSON file from an URL (with handling for |
@ORBAT I will add |
Closing this as per discussion on Slack. |
closes #32