Skip to content

Simple Go Mattermost client for incoming webhooks

License

Notifications You must be signed in to change notification settings

dg-i/go-mattermost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

go-mattermost

Simple Mattermost client for posting messages into channels using incoming webhooks.

package main

import (
	"fmt"
	"log"

	mattermost "github.com/dg-i/go-mattermost"
)

func main() {
	client := mattermost.NewClient(
		"https://chat.example.net/hooks/IiFtFtWf9WyszufkeJS3vv4v75",
		"MyBot",
		"town-square")

	err := client.SendSimpleMessage(fmt.Sprintf("Hello World! :tada:"))
	if err != nil {
		log.Fatalf("Somthing went wrong: %v", err)
	}

}

About

Simple Go Mattermost client for incoming webhooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages