summaryrefslogtreecommitdiffstats
path: root/dependencies/pkg/mod/github.com/vbauerster/mpb/v6@v6.0.4/decor/name.go
blob: 3af31125454ccea5dce57e6f282d3c9792a1aac5 (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...)
}