MCPcopy Index your code
hub / github.com/coder/coder / isDigit

Function isDigit

cli/util.go:179–183  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

177}
178
179func isDigit(s string) bool {
180 return strings.IndexFunc(s, func(c rune) bool {
181 return c < '0' || c > '9'
182 }) == -1
183}
184
185// extendedParseDuration is a more lenient version of parseDuration that allows
186// for more flexible input formats and cumulative durations.

Callers 1

parseDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected