MCPcopy Create free account
hub / github.com/koding/kite / Port

Method Port

examples/math/config.go:36–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36func (c *Config) Port() int {
37 _, s, _ := net.SplitHostPort(c.URL.Host)
38 port, _ := strconv.Atoi(s)
39 return port
40}
41
42func (c *Config) Set(s string) error {
43 if _, _, err := net.SplitHostPort(s); err != nil {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected