Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
36
func
(c *Config) Port() int {
37
_, s, _ := net.SplitHostPort(c.URL.Host)
38
port, _ := strconv.Atoi(s)
39
return
port
40
}
41
42
func
(c *Config) Set(s string) error {
43
if
_, _, err := net.SplitHostPort(s); err != nil {
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected