View definition


Defined in


getPageInfo returns the PageInfo for a package directory abspath. If the parameter genAST is set, an AST containing only the package exports is computed (PageInfo.PAst), otherwise package documentation (PageInfo.Doc) is extracted from the AST. If there is no corresponding package in the directory, PageInfo.PAst and PageInfo.PDoc are nil. If there are no sub- directories, PageInfo.Dirs is nil. If an error occurred, PageInfo.Err is set to the respective error but the error is not logged.

GetPageInfo is referenced in 1 repository