Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileContent ¶
GetFileContent returns the file content
func IsDirectory ¶
IsDirectory checks if the path is a directory or not
func IsValidPath ¶
IsValidPath checks if the path is valid or not
Types ¶
type SourceCollector ¶
type SourceCollector struct { // Input of the source code Input string // Output of the source code Output string // BasePath of the source code BasePath string // Validator of the source code Validator validators.Validator }
SourceCollector is a struct that holds the input and output of the source code
func NewSourceCollector ¶
func NewSourceCollector(input string, output string) (*SourceCollector, error)
NewSourceCollector creates a new SourceCollector
func (*SourceCollector) GenerateSourceTree ¶
func (sc *SourceCollector) GenerateSourceTree() (*SourceTree, error)
GenerateSourceTree generates the source tree
func (*SourceCollector) GenerateSourceTreeStructure ¶
func (sc *SourceCollector) GenerateSourceTreeStructure(sourceTree *SourceTree) (string, error)
GenerateSourceTreeStructure generates the source tree structure in string format
func (*SourceCollector) Save ¶
func (sc *SourceCollector) Save(sourceTree *SourceTree, sourceTreeStructure string) error
Save saves the source tree to the output path
type SourceNode ¶
type SourceNode struct { // Name of the source code node Name string // Path of the source code node Path string }
SourceNode is a struct that holds the source code node structure
type SourceTree ¶
type SourceTree struct { // Root of the source code tree Root *SourceNode // Nodes of the source code tree Nodes []*SourceTree }
SourceTree is a struct that holds the source code tree structure
Click to show internal directories.
Click to hide internal directories.