15 lines
201 B
Go
15 lines
201 B
Go
package main
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/nlopes/slack"
|
|
)
|
|
|
|
func GetMessageJson(msg *slack.Message) string {
|
|
if mb, me := json.Marshal(msg); me == nil {
|
|
return string(mb)
|
|
}
|
|
return ""
|
|
}
|