如何从像javadoc这样的Go项目生成html文档?

如何从像javadoc这样的Go项目生成html文档?,go,Go,以下是我的项目: 这是我的文件夹组织: go.mod project\ toto.go doc 这是toto.go: // Copyright Some Company Corp. // All Rights Reserved package main // here are the imports import ( "fmt" ) // Hello to say hello func Hello() { fmt.Println("hello world")

以下是我的项目:

这是我的文件夹组织:

go.mod
project\
    toto.go
doc
这是toto.go:

// Copyright Some Company Corp.
// All Rights Reserved
package main


// here are the imports
import (
    "fmt"
)

// Hello to say hello
func Hello() {
    fmt.Println("hello world")

}

// main function here
func main() {
    Hello()
}
如何像javadoc一样在html中生成文档

与功能等文件


我正在使用go1.13,你是说?是的,但是如何为函数生成文档@未生成主包的FlimzySee.文档,因为无法导入它。所有其他内容的文档都会自动显示在godoc.org上。