File: name.go

package info (click to toggle)
golang-github-vbauerster-mpb 8.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,044 kB
  • sloc: sh: 7; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (3)
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...)
}