| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| StringDictType.Dict["get"] = MustNewMethod("get", func(self Object, args Tuple) (Object, error) { | ||
| var length = len(args) | ||
| if length == 0 { |
There was a problem hiding this comment.
I believe "Effective Go" recommands to use switch for these kind of if-else-if code paths:
switch {
case length == 0:
// ...
case length > 2:
// ...
}
...
Sorry, something went wrong.
There was a problem hiding this comment.
some nit picks, but LGTM otherwise.
Sorry, something went wrong.
Implement the "get" function and add unit test. fixes #105
|
@sbinet |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Implement the "get" function and add unit test.
fixes #105