Closed plbogen closed 6 years ago
Nice job! Thanks!
No problem.
On Fri, Jan 19, 2018, 3:21 PM Qiang Xue notifications@github.com wrote:
Nice job! Thanks!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/go-ozzo/ozzo-validation/pull/39#issuecomment-359117239, or mute the thread https://github.com/notifications/unsubscribe-auth/AArbL99Yy3--Zqwa6KypCld8i0IPkx0iks5tMSOXgaJpZM4RlEfW .
There were a couple of big issues. 1) Structs that were returned from public methods were not visible. 2) When a var is set in the same line as it is declared you should use type inference. not: var silly int = 42 but: var silly = 42 3) Errors should be named ErrSomethingBad, not SomethingBadError