util

package
v0.0.0-...-7b9ad6f Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2016 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Printer printer

Functions

func BinTenets

func BinTenets() ([]string, error)

func DockerClient

func DockerClient() (*goDocker.Client, error)

func DockerTenets

func DockerTenets() ([]string, error)

func FormatOutput

func FormatOutput(in interface{}, tmplt string) (string, error)

func LingoBin

func LingoBin() (string, error)

func LingoHome

func LingoHome() (string, error)

func MustLingoHome

func MustLingoHome() string

func NewBuffer

func NewBuffer(limit int, killc chan struct{}) *buffer

TODO(waigani) limit must be > 0

func OpenFileCmd

func OpenFileCmd(editor, filename string, line int64) (*exec.Cmd, error)

func Printf

func Printf(format string, args ...interface{}) (int, error)

TODO(waigani) this is duping the logger in dev. Sort out one solution to logging and printing messages and errors.

func Println

func Println(line string)

func UserHome

func UserHome() (string, error)

Types

type FmtPrinter

type FmtPrinter struct{}

func (*FmtPrinter) Printf

func (*FmtPrinter) Printf(format string, args ...interface{}) (int, error)

func (*FmtPrinter) Println

func (*FmtPrinter) Println(args ...interface{}) (int, error)

Jump to

Keyboard shortcuts

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