Help us shape the future of Go! Take the 2026 Go Developer Survey

slack

package
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMessage

func SendMessage(url, message string) error

SendMessage sends webhook payload

Types

type BlockText

type BlockText struct {
	Type string `json:"type"`
	Text string `json:"text"`
}

BlockText is an actual text

type Message

type Message struct {
	Text   string         `json:"text"`
	Blocks []MessageBlock `json:"blocks"`
}

Message is a slack message

type MessageBlock

type MessageBlock struct {
	Type string    `json:"type"`
	Text BlockText `json:"text"`
}

MessageBlock is a slack message block

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL