dialect

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Overview

Package dialect provides functionality for easily switching Slack or Mattermost.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect interface {
	Mention(string) string
}

Dialect provides some formatters.

type Mattermost

type Mattermost struct{}

Mattermost is a dialect for Mattermost API.

func (*Mattermost) Mention

func (d *Mattermost) Mention(username string) string

Mention returns the user mention for Mattermost.

type Slack

type Slack struct{}

Slack is a dialect for Slack API.

func (*Slack) Mention

func (d *Slack) Mention(username string) string

Mention returns the user mention for Slack.

Jump to

Keyboard shortcuts

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