How do I list the public methods of a package in golang [duplicate]
问题 This question already has answers here : Call functions with special prefix/suffix (2 answers) Closed 2 years ago . How to list the package's public methods in golang? main.go package main func main() { // list all public methods in here } libs/method.go package libs func Resut1() { fmt.Println("method Result1") } func Resut2() { fmt.Println("method Result2") } 回答1: I can't answer with a 100% confidence, but I don't think this is possible to do in Go, at least quite as described. This