itor/gui/utils.go

12 lines
172 B
Go
Raw Normal View History

2022-10-11 02:53:02 +00:00
package gui
import (
"fmt"
"strings"
)
func template(format string, args ...string) string {
r := strings.NewReplacer(args...)
return fmt.Sprint(r.Replace(format))
}