sprawl: github.com/sprawl/sprawl/util Index | Files

package util

import "github.com/sprawl/sprawl/util"

Index

Package Files

instanceOf.go logger.go

func IsInstanceOf Uses

func IsInstanceOf(objectPtr, typePtr interface{}) bool

IsInstanceOf checks if objectPtr matches typePtr. Thanks to https://stackoverflow.com/a/48145372

type PlaceholderLogger Uses

type PlaceholderLogger struct {
    mock.Mock
    // contains filtered or unexported fields
}

PlaceholderLogger is a placeholder logger

func (*PlaceholderLogger) Debug Uses

func (l *PlaceholderLogger) Debug(args ...interface{})

Debug is a dummy logger method

func (*PlaceholderLogger) Debugf Uses

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

Debugf is a dummy logger method

func (*PlaceholderLogger) Error Uses

func (l *PlaceholderLogger) Error(args ...interface{})

Error is a dummy logger method

func (*PlaceholderLogger) Errorf Uses

func (l *PlaceholderLogger) Errorf(format string, args ...interface{})

Errorf is a dummy logger method

func (*PlaceholderLogger) Fatal Uses

func (l *PlaceholderLogger) Fatal(args ...interface{})

Fatal is a dummy logger method

func (*PlaceholderLogger) Fatalf Uses

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

Fatalf is a dummy logger method

func (*PlaceholderLogger) Info Uses

func (l *PlaceholderLogger) Info(args ...interface{})

Info is a dummy logger method

func (*PlaceholderLogger) Infof Uses

func (l *PlaceholderLogger) Infof(format string, args ...interface{})

Infof is a dummy logger method

func (*PlaceholderLogger) Warn Uses

func (l *PlaceholderLogger) Warn(args ...interface{})

Warn is a dummy logger method

func (*PlaceholderLogger) Warnf Uses

func (l *PlaceholderLogger) Warnf(format string, args ...interface{})

Warnf is a dummy logger method

type TestLogger Uses

type TestLogger struct {
    mock.Mock
    // contains filtered or unexported fields
}

TestLogger is a dummy logger for unit tests

func (*TestLogger) Debug Uses

func (l *TestLogger) Debug(args ...interface{})

Debug is a dummy logger method

func (*TestLogger) Debugf Uses

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

Debugf is a dummy logger method

func (*TestLogger) Error Uses

func (l *TestLogger) Error(args ...interface{})

Error is a dummy logger method

func (*TestLogger) Errorf Uses

func (l *TestLogger) Errorf(format string, args ...interface{})

Errorf is a dummy logger method

func (*TestLogger) Fatal Uses

func (l *TestLogger) Fatal(args ...interface{})

Fatal is a dummy logger method

func (*TestLogger) Fatalf Uses

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

Fatalf is a dummy logger method

func (*TestLogger) Info Uses

func (l *TestLogger) Info(args ...interface{})

Info is a dummy logger method

func (*TestLogger) Infof Uses

func (l *TestLogger) Infof(format string, args ...interface{})

Infof is a dummy logger method

func (*TestLogger) Warn Uses

func (l *TestLogger) Warn(args ...interface{})

Warn is a dummy logger method

func (*TestLogger) Warnf Uses

func (l *TestLogger) Warnf(format string, args ...interface{})

Warnf is a dummy logger method

Package util imports 3 packages (graph) and is imported by 6 packages. Updated 2020-02-08. Refresh now. Tools for package owners.