Skip to content

imura81gt: 課題1 #7

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

imura81gt: 課題1 #7

wants to merge 6 commits into from

Conversation

imura81gt
Copy link

@imura81gt imura81gt commented Sep 7, 2019

TODO:

  • go doc

@imura81gt imura81gt self-assigned this Sep 7, 2019
@imura81gt imura81gt marked this pull request as ready for review September 8, 2019 12:05
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
Copy link
Author

@imura81gt imura81gt Sep 9, 2019

Choose a reason for hiding this comment

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

[self review]

  • deferで閉じるの忘れている。。
  • 書き込み時のclose のエラー処理する

oj := flag.Bool("J", false, "convert to jpeg.")
og := flag.Bool("G", false, "convert to gif.")

flag.Parse()
Copy link
Author

Choose a reason for hiding this comment

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

[self review] init 関数とパッケージ変数
flag の取得とparse を init でやろうとすると パッケージ変数が必要になってしまう。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant