internal

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToTestDB

func ConnectToTestDB() *reform.DB

ConnectToTestDB returns open and prepared connection to test DB.

Types

type Logger

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

Logger is our custom logger with Debugf method.

func NewLogger

func NewLogger(prefix string, debug bool) *Logger

NewLogger creates a new logger.

func (*Logger) Debugf

func (l *Logger) Debugf(format string, args ...interface{})

Debugf prints message only when Logger debug flag is set to true.

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, args ...interface{})

Fatalf is equivalent to l.Printf() followed by a call to os.Exit(1) (or panic for debug logger).

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...interface{})

Printf calls l.Output to print to the logger. Arguments are handled in the manner of fmt.Printf.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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