Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Outputs = map[string]OutputMode{
	"simplified": Simplified,
	"json":       JSON,
}

Functions

func NewImagesTabWriter

func NewImagesTabWriter(out io.Writer) *tabwriter.Writer

Types

type OutputMode

type OutputMode int
const (
	Simplified OutputMode = iota + 1
	JSON
)

func (OutputMode) String

func (o OutputMode) String() string

type OutputValue

type OutputValue OutputMode

func NewOutputValue

func NewOutputValue(val OutputMode, p *OutputMode) *OutputValue

NewOutputValue satisfies the flag.Value interface{}. Use it to plug into the flag package.

func (*OutputValue) Get

func (o *OutputValue) Get() interface{}

func (*OutputValue) Set

func (o *OutputValue) Set(val string) error

func (*OutputValue) String

func (o *OutputValue) String() string

Jump to

Keyboard shortcuts

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