Refactoring after code review
Fix issues from code review:
-
Use dep or modules -
Go modules database-lab#34 (closed) -
Add comments to exported functions -
Missed error processing https://goreportcard.com/report/gitlab.com/postgres-ai/joe#L278 -
golint and misspell warning from the same link -
Use absolute path of package instead of dots in imports, e.g. "../ec2ctrl". Different in modules https://stackoverflow.com/a/53016796/319692 -
Short write is possible here https://gitlab.com/postgres-ai/joe/blob/master/src/provision/aws.go#L323 better to do it like here https://golang.org/src/io/ioutil/ioutil.go?s=2534:2602#L69 or use lib functions -
Add Golang linter
Edited by Nikolay Samokhvalov