Kadai4 tomoyuki.kobayashi - #52
Open
bakisunsan wants to merge 46 commits into
Open
Conversation
…nsan/dojo4 into kadai3-tomoyuki.kobayashi
…nsan/dojo4 into kadai3-tomoyuki.kobayashi
knsh14
reviewed
Nov 29, 2018
| ``` | ||
| ./serve | ||
| ``` | ||
| でポート8080で立ち上がるため下記などのようにしてリクエストしてください |
There was a problem hiding this comment.
僕のPCは諸般の事情で 8080 ポート埋まっているんですがなんとかなりませんか?
ヒント
Author
There was a problem hiding this comment.
ありがとうございます。
ヒントでいただいているように、引数で与えられるようにするか、
":0"で指定して確保できたポートを出力するのが良さそうですね。
knsh14
reviewed
Nov 29, 2018
|
|
||
| const ( | ||
| // DAIKICHI 大吉 | ||
| DAIKICHI = 0 |
There was a problem hiding this comment.
const (
DAIKICHI = iota
CYUKICHI
...
)
でも同じ結果になります。
Author
There was a problem hiding this comment.
ありがとうございます。確かに、iotaは省略可能でしたね。
added 2 commits
December 3, 2018 06:08
bakisunsan
commented
Dec 3, 2018
|
|
||
| /* | ||
| NOTE 標本増やすためにランダムな時間を与えるのをtest.quickでできないか試してみたが | ||
| reflect.Valueでpanicするので、timeはダメっぽい |
Author
There was a problem hiding this comment.
ここはtime.Timeをランダマイズするのではなく
configでunixtimeのレンジを決めて、intをランダムに与えるようにすればやりたいことはできそう
https://stackoverflow.com/questions/40944233/generating-random-timestamps-in-go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
おみくじAPIを作ってみよう