reform.v1: Index | Files | Directories

package internal

import ""


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.



Package internal imports 15 packages (graph) and is imported by 4 packages. Updated 2020-07-29. Refresh now. Tools for package owners.