-
Notifications
You must be signed in to change notification settings - Fork 0
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
sadah / 課題1 #8
base: master
Are you sure you want to change the base?
sadah / 課題1 #8
Conversation
tarExt = "." + tarExt | ||
} | ||
|
||
func run() (err error) { |
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.
名前付き戻り値はドキュメンテーションまたはdefer内で戻り値を変更したい場合以外は基本的には用いないほうが良いです。
if err != nil { | ||
return err | ||
} | ||
if filepath.Ext(path) == srcExt { |
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.
ディレクトリかファイルかのチェックもあってもいいかもしれないです。
拡張子がついてるので微妙ですが。
|
||
var ( | ||
// SupportedExts is a list of supported extensions | ||
SupportedExts exts = []string{ |
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.
map使ったほうが楽そうです。
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.
見ました!
課題1: 画像変換コマンドを作ろう のPRになります。
詳細は README に記載しています。
レビューよろしくお願いいたします。