env

package
v0.0.0-...-c971602 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2014 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Debug is set via the -debug flag for the serve command.
	Debug bool
	// Handler comes from calling Handler() on a gadget.App object. It's used by the serve command to run the server.
	Handler http.HandlerFunc
)

Functions

func Log

func Log(v ...interface{})

Log writes arguments v as a single line to the default logger.

func Open

func Open(path string) (*os.File, error)

Open wraps os.Open, but with the assumption that the path is relative to the project root.

func RelPath

func RelPath(path ...string) string

RelPath creates an absolute path from path segments path relative to the project root.

Types

type Serve

type Serve struct {
	*quimby.Flagger
}

The Serve command makes it easy to run Gadget applications.

func (*Serve) Desc

func (s *Serve) Desc() string

func (*Serve) Run

func (s *Serve) Run()

Run sets up a logger and runs the Handler.

func (*Serve) SetFlags

func (s *Serve) SetFlags()

SetFlags defines flags for the serve command.

Jump to

Keyboard shortcuts

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