utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2015 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

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