如何在golang中列出包的公共方法?
main.go
package main
func main() {
// list all public methods in here
}
Run Code Online (Sandbox Code Playgroud)
库/ method.go
package libs
func Resut1() {
fmt.Println("method Result1")
}
func Resut2() {
fmt.Println("method Result2")
}
Run Code Online (Sandbox Code Playgroud)