Create new type and remove un-used code
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 11s

This commit is contained in:
2025-01-12 19:33:57 -06:00
parent 434d3fed1b
commit 03a47deade
740 changed files with 498069 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
package tml
import (
"strings"
"bytes"
)
// Parse converts the input string (containing TML tags) into a string containing ANSI escape code sequences for output to the terminal.
func Parse(input string) (string, error) {
output := bytes.NewBufferString("")
if err := NewParser(output).Parse(strings.NewReader(input)); err != nil {
return "", err
}
return output.String(), nil
}