core

package
v0.0.0-...-4d88b5a Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Version of Veil

Variables

This section is empty.

Functions

func ToCap

func ToCap(s string) string

ToCap will capitalize the first rune in a string

func ToSnake

func ToSnake(in string) string

ToSnake convert the given string to snake case following the Golang format: acronyms are converted to lower-case and preceded by an underscore. via: https://gist.github.com/elwinar/14e1e897fdbe4d3432e1

Types

type Binder

type Binder interface {
	Bind(outDir, libName string) error
}

Bindable is the interface for any object that will create a binding for a golang.Package

type CommandError

type CommandError struct {
	// contains filtered or unexported fields
}

CommandError is an error used to signal different error situations in command handling.

func NewSystemError

func NewSystemError(a ...interface{}) CommandError

NewSystemError creates a new system related error

func NewSystemErrorF

func NewSystemErrorF(format string, a ...interface{}) CommandError

NewSystemErrorF creates a new system related error with formatting

func NewUserError

func NewUserError(a ...interface{}) CommandError

NewUserError creates a new user input related error

func (CommandError) Error

func (c CommandError) Error() string

Jump to

Keyboard shortcuts

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