util

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package util contains general purpose utility and logging functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(group string, format string, any ...interface{})

Debug writes a debug statement to stdout.

func Deprecate added in v1.3.1

func Deprecate(message string)

Deprecate writes a deprecation warning.

func Error

func Error(group string, format string, any ...interface{})

Error writes an error statement to stdout.

func FileExists

func FileExists(filename string) bool

FileExists determines if path exists

func Info

func Info(group string, format string, any ...interface{})

Info writes an info statement to stdout.

func PackageName

func PackageName(sourceFile string) (string, error)

PackageName determines the package name from sourceFile if it is within $GOPATH

func Panic

func Panic(group string, format string, any ...interface{})

Panic writes an error statement to stdout.

func StrTemplate added in v1.4.3

func StrTemplate(src string, data map[string]interface{}) (string, error)

StrTemplate reads a go template and writes it to dist given data.

func Template

func Template(src string, dest string, data map[string]interface{})

Template reads a go template and writes it to dist given data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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