blob: 31ac123b5baee321f442f189b85a989f750255e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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...)
}
|