Documentation ¶ Index ¶ type Annotation type Function func InspectFunction(srcPath string, fnParams, fnResults []string, annotationPrefix string) ([]*Function, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Annotation ¶ type Annotation struct { Name string Value string } Annotation 注释中的注解 type Function ¶ type Function struct { Receiver string Function string Annotations map[string]*Annotation // annotationName->*AstAnnotation PlainComments []string // 去除注解后的注释 } func InspectFunction ¶ func InspectFunction(srcPath string, fnParams, fnResults []string, annotationPrefix string) ([]*Function, error) InspectFunction 从源代码目录中获取fnParams和fnResults匹配的函数的信息,并解析函数对应的注解 handlerName=>*moduleInfo Source Files ¶ View all Source files ast.go Click to show internal directories. Click to hide internal directories.