()
| 24 | } |
| 25 | |
| 26 | func (s *Server) String() (str string) { |
| 27 | if s == nil { |
| 28 | return |
| 29 | } |
| 30 | |
| 31 | str = fmt.Sprintf("%s:%s", s.Ip, s.Port) |
| 32 | |
| 33 | return |
| 34 | } |
| 35 | |
| 36 | func StringToServer(str string) (server *Server, err error) { |
| 37 | list := strings.Split(str, ":") |
no outgoing calls
no test coverage detected