gpt4 book ai didi

go - 在 godoc 中添加标题

转载 作者:IT王子 更新时间:2023-10-29 01:54:46 25 4
gpt4 key购买 nike

我正在尝试在我的 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 显示如下,先决条件不是标题:-

enter image description here

谁能告诉我出了什么问题?

环境:-

  • Go 1.7
  • Mac OSX El Capitan

最佳答案

列表似乎导致了问题。您可能想为此创建一个问题。

如果您在列出先决条件之前添加任何行,它将按预期工作:

// 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

关于go - 在 godoc 中添加标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39669660/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com