MCPcopy Create free account
hub / github.com/EBWi11/AgentSmith-HUB / formatMapToReadableString

Function formatMapToReadableString

config/plugin/pushMsgToTeams.go:12–22  ·  view source on GitHub ↗
(data map[string]interface{})

Source from the content-addressed store, hash-verified

10)
11
12func formatMapToReadableString(data map[string]interface{}) string {
13 if data == nil {
14 return "{}"
15 }
16 b, err := json.MarshalIndent(data, "", " ")
17 if err != nil {
18 flat, _ := json.Marshal(data)
19 return string(flat)
20 }
21 return string(b)
22}
23
24// Eval pushes message to Microsoft Teams via Incoming Webhook
25// Param1: WebhookURL

Callers 1

EvalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected