12 lines
172 B
Go
12 lines
172 B
Go
|
package gui
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func template(format string, args ...string) string {
|
||
|
r := strings.NewReplacer(args...)
|
||
|
return fmt.Sprint(r.Replace(format))
|
||
|
}
|