{"modulePath":"github.com/danielmiessler/fabric","version":"v1.4.586","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Functions\n\n```go\nfunc ScanDirectory(rootDir string, maxDepth int, instructions string, ignoreList []string) ([]byte, error)\n```\nScanDirectory scans a directory and returns a JSON representation of its structure\n\n```go\nfunc ScanFiles(files []string, instructions string) ([]byte, error)\n```\nScanFiles scans specific files and returns a JSON representation\n\n## Types\n\n```go\ntype FileItem struct {\n\tType     string     `json:\"type\"`\n\tName     string     `json:\"name\"`\n\tContent  string     `json:\"content,omitempty\"`\n\tContents []FileItem `json:\"contents,omitempty\"`\n}\n```\nFileItem represents a file in the project\n\n```go\ntype ProjectData struct {\n\tFiles        []FileItem `json:\"files\"`\n\tInstructions struct {\n\t\tType    string `json:\"type\"`\n\t\tName    string `json:\"name\"`\n\t\tDetails string `json:\"details\"`\n\t} `json:\"instructions\"`\n\tReport struct {\n\t\tType        string `json:\"type\"`\n\t\tDirectories int    `json:\"directories\"`\n\t\tFiles       int    `json:\"files\"`\n\t} `json:\"report\"`\n}\n```\nProjectData represents the entire project structure with instructions\n\n","path":"github.com/danielmiessler/fabric/cmd/code2context","name":"main","synopsis":"","isRedistributable":true}
