out

package
v0.0.0-...-b679ee6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package out holds printing primitives. All slack message printing happens via this package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintChat

func PrintChat(username string, users map[string]string, messages []*api.Message)

PrintChat prints channel messages. like this:

yarik: hello max
  max: hello yarik

func PrintChatBg

func PrintChatBg(username string, users map[string]string, messages []*api.Message)

PrintChatBg prints channel messages from background process (almost similar output).

Types

type Printer

type Printer struct {
	Out io.Writer
	// contains filtered or unexported fields
}

func (*Printer) PrintChat

func (p *Printer) PrintChat(username string, users map[string]string, messages []*api.Message, fromDaemon bool)

Jump to

Keyboard shortcuts

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