util

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2014 License: BSD-3-Clause, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorizeDiff

func ColorizeDiff(diff []byte) []byte

ColorizeDiff takes a byte slice of lines and returns the same, but with diff highlighting. That is, lines starting with '+' are green and lines starting with '-' are red.

func CurrentUserHomeDir added in v0.0.16

func CurrentUserHomeDir() string

CurrentUserHomeDir tries to get the current user's home directory in a cross-platform manner.

func NewDockerClient added in v0.0.11

func NewDockerClient() (*docker.Client, error)

NewDockerClient creates a new Docker client configured to reach Docker at the DOCKER_HOST env var, or the default /var/run/docker.sock socket if unset.

Types

type Errors

type Errors []error

func (Errors) Error

func (e Errors) Error() string

Jump to

Keyboard shortcuts

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