app

package
v0.0.0-...-ddd1ce2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Exec     = db.Exec
	Query    = db.Query
	QueryRow = db.QueryRow
)
View Source
var Config appConfig

Functions

func CheckErr

func CheckErr(err error)

func CountRows

func CountRows(rows *sql.Rows) (count int)

func LoadConfig

func LoadConfig(configPaths ...string) error

LoadConfig loads configuration from the given list of paths and populates it into the Config variable.

func String

func String(length int) string

func StringToInt

func StringToInt(value string) (number int)

func StringWithCharset

func StringWithCharset(length int, charset string) string

func Throw

func Throw(up Exception)

Types

type Block

type Block struct {
	Try     func()
	Catch   func(Exception)
	Finally func()
}

func (Block) Do

func (tcf Block) Do()

type Exception

type Exception interface{}

Jump to

Keyboard shortcuts

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