slack

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 6 Imported by: 1

README

Slack Incoming Webhook for Go

Installation

go get github.com/Girein/slack-incoming-webhook-go

Setup

Add SLACK_WEBHOOK_URL in your .env file:

SLACK_WEBHOOK_URL=your-slack-incoming-webhook-url

Usage

import "github.com/Girein/slack-incoming-webhook-go"

slack.PostMessage("Hello World!")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostMessage

func PostMessage(text string) error

PostMessage post a message to Incoming Webhook URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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