util

package
v0.0.0-...-821cfb7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaimIDFromOutpoint

func ClaimIDFromOutpoint(txid string, nout int) (string, error)

func InSlice

func InSlice(str string, values []string) bool

func InitSlack

func InitSlack(token string, channel string, username string)

InitSlack Initializes a slack client with the given token and sets the default channel.

func SendToSlack

func SendToSlack(message string) error

SendToSlack Sends message to the default channel.

func SendToSlackChannel

func SendToSlackChannel(channel, username, message string) error

SendToSlackChannel Sends message to a specific channel.

func SendToSlackUser

func SendToSlackUser(user, username, message string) error

SendToSlackUser Sends message to a specific user.

func Underscore

func Underscore(s string) string

Underscore converts "CamelCasedString" to "camel_cased_string".

Types

This section is empty.

Jump to

Keyboard shortcuts

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