code: func (parser *Parser) ParseAPI(searchDir string, mainAPIFile string) error {
  	Println("Generate general API Info")
  	if err := parser.getAllGoFileInfo(searchDir); err != nil {
  		return err
  	}
  	parser.ParseGeneralAPIInfo(path.Join(searchDir, mainAPIFile))
  
  	for _, astFile := range parser.files {
  		parser.ParseType(astFile)
  	}
  
  	for fileName, astFile := range parser.files {
  		if err := parser.ParseRouterAPIInfo(fileName, astFile); err != nil {
  			return err
  		}
  	}
  
  	parser.ParseDefinitions()
  
  	return nil
  }
docs: // ParseAPI parses general api info for gived searchDir and mainAPIFile