MCPcopy Create free account
hub / github.com/encodeous/nylon / ParseEndpoint

Method ParseEndpoint

polyamide/conn/bindtest/bindtest.go:133–139  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

131}
132
133func (c *ChannelBind) ParseEndpoint(s string) (conn.Endpoint, error) {
134 addr, err := netip.ParseAddrPort(s)
135 if err != nil {
136 return nil, err
137 }
138 return ChannelEndpoint(addr.Port()), nil
139}

Callers

nothing calls this directly

Calls 1

ChannelEndpointTypeAlias · 0.85

Tested by

no test coverage detected