Documentation
¶
Index ¶
- Constants
- func ApplyCreationSteps(creationResponse string) bool
- func Color(line string, color string) string
- func ComputeMD5(path string) (string, error)
- func Diff(oldContent, newContent, filePath string)
- func ExtractFileName(urlStr string) (string, error)
- func GetAvailableLanguages(lastAIResponse string) []string
- func GetFilePathsInDirectory(dir string) []string
- func HtmltoText(n *html.Node) string
- func IsBinaryFile(filename string) bool
- func IsDirectory(path string) bool
- func IsExcluded(name string, isDir bool) bool
- func IsFile(path string) bool
- func OpenTerm(fileName string, app string)
- func ParseEditInstructions(aiResponse string) map[string]string
- func ReadLines(path string) ([]string, error)
- func RenderMarkdown(txt string) string
- func Snippet(text string, maxLength int) string
- func ToSnakeCase(s string) string
- type CodeBlock
Constants ¶
View Source
const ( Reset = "\033[0m" Green = "\033[32m" Red = "\033[31m" Yellow = "\033[33m" Cyan = "\033[36m" Bold = "\033[1m" )
Variables ¶
This section is empty.
Functions ¶
func ApplyCreationSteps ¶
Applies creation steps based on the AI's response
func ComputeMD5 ¶
func Diff ¶
func Diff(oldContent, newContent, filePath string)
Displays the differences between old and new content
func ExtractFileName ¶
func GetAvailableLanguages ¶
func GetFilePathsInDirectory ¶
Retrieves file paths in a directory, skipping excluded directories
func HtmltoText ¶
func IsBinaryFile ¶
func IsExcluded ¶
func ParseEditInstructions ¶
Parses edit instructions from the AI's response
func RenderMarkdown ¶
func ToSnakeCase ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.