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

Kadai4 kotaaaa #89

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

Kadai4 kotaaaa #89

wants to merge 2 commits into from

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant