commons

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTENT_FS = iota + 1
	CONTENT_URL
	CONTENT_INLINE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Path        string
	Kind        int
	Workingpath string
}

func NewLocation

func NewLocation(ref string, cwl string) (*Location, error)

func (*Location) Content

func (l *Location) Content() ([]byte, string, error)

func (*Location) ContentWithOptions

func (l *Location) ContentWithOptions(options map[string]string) ([]byte, string, error)

func (*Location) Expand

func (l *Location) Expand() (*Locations, int, error)

func (*Location) TemplateWithOptions

func (l *Location) TemplateWithOptions(options map[string]string) (*template.Template, string, error)

type Locations

type Locations struct {
	Items []*Location
}

func (*Locations) Add

func (l *Locations) Add(ref string, cwl string) error

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Debugln(args ...interface{})

	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Errorln(args ...interface{})

	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Fatalln(args ...interface{})

	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Infoln(args ...interface{})

	Panic(args ...interface{})
	Panicf(format string, args ...interface{})
	Panicln(args ...interface{})

	Print(args ...interface{})
	Printf(format string, args ...interface{})
	Println(args ...interface{})

	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Warning(args ...interface{})
	Warningf(format string, args ...interface{})
	Warningln(args ...interface{})
	Warnln(args ...interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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