Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

sadah / 課題1 #8

wants to merge 1 commit into from

Conversation

sadah
Copy link
Member

@sadah sadah commented Jul 8, 2020

課題1: 画像変換コマンドを作ろう のPRになります。
詳細は README に記載しています。
レビューよろしくお願いいたします。

@sadah sadah requested a review from tenntenn July 8, 2020 01:24
@tenntenn tenntenn added the kadai1 課題1 label Jul 9, 2020
tarExt = "." + tarExt
}

func run() (err error) {
Copy link
Member

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 {
Copy link
Member

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{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

map使ったほうが楽そうです。

Copy link
Member

@tenntenn tenntenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

見ました!

@tenntenn tenntenn added the reviewed レビュー済 label Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kadai1 課題1 reviewed レビュー済
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants