MCPcopy Create free account
hub / github.com/LockGit/gochat / getParamByKey

Function getParamByKey

task/rpc.go:71–80  ·  view source on GitHub ↗
(s string, key string)

Source from the content-addressed store, hash-verified

69}
70
71func getParamByKey(s string, key string) string {
72 params := strings.Split(s, "&")
73 for _, p := range params {
74 kv := strings.Split(p, "=")
75 if len(kv) == 2 && kv[0] == key {
76 return kv[1]
77 }
78 }
79 return ""
80}
81
82func (task *Task) InitConnectRpcClient() (err error) {
83 etcdConfigOption := &store.Config{

Callers 1

watchServicesChangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected