MCPcopy
hub / github.com/link1st/gowebsocket / String

Method String

models/server_model.go:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (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
36func StringToServer(str string) (server *Server, err error) {
37 list := strings.Split(str, ":")

Callers 12

SetServerInfoFunction · 0.45
DelServerInfoFunction · 0.45
GetServerIpFunction · 0.45
SendMsgAllFunction · 0.45
GetUserListFunction · 0.45
SendMsgFunction · 0.45
wsPageFunction · 0.45
QueryUsersOnlineMethod · 0.45
SendMsgMethod · 0.45
SendMsgAllMethod · 0.45
GetUserListMethod · 0.45
getTextMsgDataFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected