util

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package util defines convenience functions for handling slices and debugging.

Note: this package is an implementation detail and shouldn't be used outside of docker2aci.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(i ...interface{})

Debug prints a message to stderr if debug is enabled.

func In

func In(list []string, el string) bool

In checks whether el is in list.

func IndexOf

func IndexOf(list []string, el string) int

IndexOf returns the index of el in list, or -1 if it's not found.

func Info

func Info(i ...interface{})

Info prints a message to stderr.

func InitDebug

func InitDebug()

InitDebug enables debug output.

func Quote

func Quote(l []string) []string

Quote takes a slice of strings and returns another slice with them quoted.

func ReverseImages

func ReverseImages(s acirenderer.Images) acirenderer.Images

ReverseImages takes an acirenderer.Images and reverses it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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