15 lines
222 B
Go
15 lines
222 B
Go
package main
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
slack "git.bullercodeworks.com/brian/go-slack"
|
|
)
|
|
|
|
func GetMessageJson(msg *slack.Message) string {
|
|
if mb, me := json.Marshal(msg); me == nil {
|
|
return string(mb)
|
|
}
|
|
return ""
|
|
}
|