blob: a7d477e0756919c43518683389edf8d311f297a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package decor
// Name decorator displays text that is set once and can't be changed
// during decorator's lifetime.
//
// `str` string to display
//
// `wcc` optional WC config
//
func Name(str string, wcc ...WC) Decorator {
return Any(func(*Statistics) string { return str }, wcc...)
}
|