MCPcopy
hub / github.com/42wim/matterbridge / GetString

Method GetString

bridge/bridge.go:113–119  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

111}
112
113func (b *Bridge) GetString(key string) string {
114 val, ok := b.Config.GetString(b.GetConfigKey(key))
115 if !ok {
116 val, _ = b.Config.GetString("general." + key)
117 }
118 return val
119}
120
121func (b *Bridge) GetStringSlice(key string) []string {
122 val, ok := b.Config.GetStringSlice(b.GetConfigKey(key))

Callers

nothing calls this directly

Calls 2

GetConfigKeyMethod · 0.95
GetStringMethod · 0.65

Tested by

no test coverage detected