2016-09-23 7 views
1

私は自分のgodocにタイトルを追加しようとしています。私はgodoctricksを紹介しました。godocにタイトルを追加する

// Package hello-world provides a helloworld example 
// 
// Pre-requisites 
// 
// * Go 1.5+ 
// * Linux or MacOS 
// * https://onsi.github.io/ginkgo/ for executing the tests 
// 
// 
package hello_world 

しかしgodocはないタイトルとして前提条件と以下のようにアップ示している: - - :私のgodocは、以下のようになります

enter image description here

誰かが私が間違って何が起こっているかを知らせることができますか?

環境: -

  • ゴー1.7
  • マックOSXエルキャピタン

答えて

4

リストが問題を引き起こしているようです。そのために問題を作りたいと思うかもしれません。前提条件をリストする前に任意の行を追加する場合

、それが期待どおりに動作します:

// Package hello-world provides a helloworld example 
// 
// Pre-requisites 
// 
// You need to have the following: 
// * Go 1.5+ 
// * Linux or MacOS 
// * https://onsi.github.io/ginkgo/ for executing the tests 
// 
// 
package hello_world 
関連する問題