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

Kadai4 kotaaaa #89

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
kotaaaa wants to merge 2 commits into gopherdojo:master
base: master
Choose a base branch
Loading
from kotaaaa:kadai4-kotaaaa
Open

Kadai4 kotaaaa #89

kotaaaa wants to merge 2 commits into gopherdojo:master from kotaaaa:kadai4-kotaaaa

Conversation

@kotaaaa
Copy link

@kotaaaa kotaaaa commented Nov 14, 2021

課題4の回答を作成しました。度々ですみませんが、もし良ければレビューしていただけますと嬉しいです。

課題4 タイピングゲームを作ろう
課題要件
おみくじAPIを作ってみよう

  • JSON形式でおみくじの結果を返す
  • 正月(1/1-1/3)だけ大吉にする
  • ハンドラのテストを書いてみる

How to use

$ go build -o fortune-api
$ ./fortune-api 
$ curl "http://localhost:8080/draw?p=2021年11月14日"
{"status":"Success","result":"末吉"}
$ curl "http://localhost:8080/draw"
{"status":"Success","result":"小吉"}

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 によって変換されたページ (->オリジナル) /