这是我的代码和终端窗口。我应该怎么做才能让它正常工作并返回功能描述?
// Copyright DOCUMENTATION FOR ME. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package testDoc
// sayHello return "Hello world string"
func sayHello() string{
return "Hello world!"
}
最佳答案
使用 -u 标志显示 unexported符号:go doc -u ./test
关于go - 如何使用godoc正确生成文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57068884/