Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependencyInfo ¶
type DirectoryNode ¶
type DirectoryNode struct { Name string `xml:"name,attr"` Type string `xml:"type,attr"` // "file" or "dir" Children []*DirectoryNode `xml:"node,omitempty"` }
DirectoryNode represents a node in the directory tree
func (*DirectoryNode) ToMarkdown ¶
func (d *DirectoryNode) ToMarkdown(level int) string
Helper function to convert DirectoryNode to markdown string
type FileStatistics ¶
type Formatter ¶
type Formatter interface {
Format(project *ProjectOutput) (string, error)
}
Formatter interface for different output formats
func GetFormatter ¶
Get appropriate formatter based on format string
type MarkdownFormatter ¶
type MarkdownFormatter struct{}
func (*MarkdownFormatter) Format ¶
func (m *MarkdownFormatter) Format(project *ProjectOutput) (string, error)
type OutputFormat ¶
type OutputFormat string
const ( FormatMarkdown OutputFormat = "markdown" FormatXML OutputFormat = "xml" )
type ProjectAnalysis ¶
type ProjectAnalysis struct { EntryPoints map[string]string `xml:"entryPoints,omitempty"` ConfigFiles map[string]string `xml:"configFiles,omitempty"` CoreFiles map[string]string `xml:"coreFiles,omitempty"` TestFiles map[string]string `xml:"testFiles,omitempty"` Documentation map[string]string `xml:"documentation,omitempty"` }
type ProjectOutput ¶
type ProjectOutput struct { XMLName xml.Name `xml:"project"` DirectoryTree *DirectoryNode `xml:"directoryTree"` GitInfo *GitInfo `xml:"gitInfo,omitempty"` Metadata *Metadata `xml:"metadata,omitempty"` Files []FileInfo `xml:"files>file,omitempty"` Overview *ProjectOverview `xml:"overview,omitempty"` FileStats *FileStatistics `xml:"fileStats,omitempty"` Dependencies *DependencyInfo `xml:"dependencies,omitempty"` Analysis *ProjectAnalysis `xml:"analysis,omitempty"` }
type ProjectOverview ¶
type XMLFormatter ¶
type XMLFormatter struct{}
func (*XMLFormatter) Format ¶
func (x *XMLFormatter) Format(project *ProjectOutput) (string, error)
Click to show internal directories.
Click to hide internal directories.