MCPcopy Create free account
hub / github.com/pydio/cells / validPortNumber

Function validPortNumber

cmd/install-cli.go:730–736  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

728}
729
730func validPortNumber(input string) error {
731 port, e := strconv.ParseInt(input, 10, 64)
732 if e == nil && port == 0 {
733 return errors.New("Please use a non empty port!")
734 }
735 return e
736}
737
738func validUrl(input string) error {
739 _, e := url.Parse(input)

Callers 1

validHostPortFunction · 0.85

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…