Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

go-utils

A lightweight Slack message utility for use in Netlify serverless functions.

Usage

go get github.com/codevideo/[email protected]
package main

import (
    utils "github.com/codevideo/go-utils/slack"
)

func main() {
    err := utils.SendSlackMessage(slackMessageContent)
	if err != nil {
		log.Printf("Error sending Slack message: %v", err)
	}
}

Environment Variables

Set SLACK_WEBHOOK_URL to your Slack incoming webhook URL.

Migration note (v0.0.3): The env var was renamed from CODEVIDEO_SLACK_WEBHOOK_URL to SLACK_WEBHOOK_URL. The old name is still supported as a fallback but will be removed in a future version.

About

Utils seperately packaged to be consumed in things like Netlify serverless functions.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages