-
-
Notifications
You must be signed in to change notification settings - Fork 32
V0.4 #9
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
Conversation
- Migrate Glide to dep
- Remove the vendor directory from the repository
- Refactor
- Use https://github.com/tkuchiki/gohttpstats/tree/v0.1.6
- Add test
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.
さらっと見ました
あとは gohttpstats側になりますが、fieldがPointerで定義してあるのに違和感を感じました...
continue Loop | ||
} else if err != nil { | ||
return err | ||
} |
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.
まずはerrorがnilかどうかをチェックしてから他のエラーをチェックしたほうがよいかと
if err != nil {
if err == io.EOF {
break
} else if err == httpstas.SkipReadLineErr {
continue Loop
}
return err
}
(とはいえ好みの部分もあると思います)
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.
私もこの書き方のほうが好みなので修正します
- Add flags(move from gohttpstats) - Fix reviewed points
v0.4.0 released |