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

hokita / 課題4 #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

hokita / 課題4 #28

wants to merge 1 commit into from

Conversation

hokita
Copy link

@hokita hokita commented Aug 9, 2020

課題4

おみくじAPIを作ってみよう

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

動作

$ go build -o omkj
$ ./omkj

別ターミナルで

$ curl localhost:8080/omikuji/
{"result":"末吉"}
$ curl localhost:8080/omikuji/
{"result":""}
$ curl localhost:8080/omikuji/
{"result":"中吉"}
$ curl localhost:8080/omikuji/
{"result":""}

参考

@hokita hokita added the kadai4 課題4 label Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kadai4 課題4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant