Files
William Gill 03a47deade
Some checks failed
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 11s
Create new type and remove un-used code
2025-01-12 19:33:57 -06:00

12 lines
454 B
Go

package tml
import "fmt"
// Sprintf works like fmt.Sprintf, but adds the option of using tags to apply colour or text formatting to the written text. For example "<red>some red text</red>".
// A full list of tags is available here: https://github.com/liamg/tml
func Sprintf(input string, a ...interface{}) string {
// parsing cannot fail as the reader/writer are simply for local strings
format, _ := Parse(input)
return fmt.Sprintf(format, a...)
}