MCPcopy
hub / github.com/linki/chaoskube / String

Method String

util/util.go:47–49  ·  view source on GitHub ↗

String returns tp as a pretty string.

()

Source from the content-addressed store, hash-verified

45
46// String returns tp as a pretty string.
47func (tp TimePeriod) String() string {
48 return fmt.Sprintf("%s-%s", tp.From.Format(Kitchen24), tp.To.Format(Kitchen24))
49}
50
51// ParseWeekdays takes a comma-separated list of abbreviated weekdays (e.g. sat,sun) and turns them
52// into a slice of time.Weekday. It ignores any whitespace and any invalid weekdays.

Callers 6

mainFunction · 0.80
TestNewMethod · 0.80
CandidatesMethod · 0.80
filterByPodNameFunction · 0.80
TestTimePeriodStringMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestNewMethod · 0.64
TestTimePeriodStringMethod · 0.64