Skip to content

Kadai4 kotaaaa#89

Open
kotaaaa wants to merge 2 commits intogopherdojo:masterfrom
kotaaaa:kadai4-kotaaaa
Open

Kadai4 kotaaaa#89
kotaaaa wants to merge 2 commits intogopherdojo:masterfrom
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant