You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Overview ¶ Godoc extracts and generates documentation for Go programs. It runs as a web server and presents the documentation as a web page. godoc -http=:6060 Usage: godoc [flag] The flags are: -v verbose mode -timestamps=true show timestamps with directory listings -index enable identifier and full text search index (no search box is shown if -index is not set) -index_files="" glob pattern specif
先程のエントリーでExampleとgo docの関係がいまいちはっきりしなかったので少し調べてみました。 今回はGOPATH以下このようなのようなディレクトリ構成を想定しています。 src/ sample.com/mylib1/sample.go sample_test.go ※mylib1ディレクトリ以外は省略 またそれぞれのソースコードの内容は以下のとおりです。 sample.com/mylib1/sample.go package mylib1 // x / y の計算を行います。 func Div(x int, y int) float64 { return float64(x) / float64(y) } sample.com/mylib1/sample_test.go package mylib1 import ( "testing" "fmt" ) func TestDiv
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く