MCPcopy
hub / github.com/dnote/dnote / IsNumber

Function IsNumber

pkg/cli/utils/utils.go:39–45  ·  view source on GitHub ↗

IsNumber checks if the given string is in the form of a number

(s string)

Source from the content-addressed store, hash-verified

37
38// IsNumber checks if the given string is in the form of a number
39func IsNumber(s string) bool {
40 if s == "" {
41 return false
42 }
43
44 return regexNumber.MatchString(s)
45}

Callers 4

newRunFunction · 0.92
newRunFunction · 0.92
newRunFunction · 0.92
BookNameFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected