Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Kadai1 kynefuk #80

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
kynefuk wants to merge 5 commits into gopherdojo:master
base: master
Choose a base branch
Loading
from kynefuk:kadai1-kynefuk
Open

Kadai1 kynefuk #80

kynefuk wants to merge 5 commits into gopherdojo:master from kynefuk:kadai1-kynefuk

Conversation

@kynefuk
Copy link
Member

@kynefuk kynefuk commented Sep 19, 2021
edited
Loading

課題1のPRを作成しました。お手すきでレビューしていただけますと幸いです。

次の仕様を満たすコマンドを作ってください

  • ディレクトリを指定する
  • 指定したディレクトリ以下の JPG ファイルを PNG に変換(デフォルト)
  • ディレクトリ以下は再帰的に処理する
  • 変換前と変換後の画像形式を指定できる(オプション)

以下を満たすように開発してください

  • main パッケージと分離する
  • 自作パッケージと標準パッケージと準標準パッケージのみ使う
  • ユーザ定義型を作ってみる
  • GoDoc を生成してみる
  • Go Modules を使ってみる

使い方

### ビルドして使う場合

  • ビルド
go build -o image-converter
image-converter -d sample -f .png -t .jpg

ビルドしない場合

go run main.go -d [ディレクトリ] -f [変換前の拡張子] -t [変換後の拡張子]
go run main.go -d sample -f .png -t .jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /