reform.v1: gopkg.in/reform.v1/internal Index | Files | Directories

package internal

import "gopkg.in/reform.v1/internal"

Index

Package Files

logger.go test_db.go

func ConnectToTestDB Uses

func ConnectToTestDB() *reform.DB

ConnectToTestDB returns open and prepared connection to test DB.

type Logger Uses

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

Logger is our custom logger with Debugf method.

func NewLogger Uses

func NewLogger(prefix string, debug bool) *Logger

NewLogger creates a new logger.

func (*Logger) Debugf Uses

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

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

func (*Logger) Fatalf Uses

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 Uses

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

PathSynopsis
test
test/models
test/models/bogus

Package internal imports 12 packages (graph) and is imported by 4 packages. Updated 2018-12-13. Refresh now. Tools for package owners.