common

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const EdwardVersion = "1.8.5"

Variables

This section is empty.

Functions

func StringToStringPointer

func StringToStringPointer(s string) *string

StringToStringPointer converts a string value to a string pointer

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

Logger provides a simple logging interface with minimal print function(s)

func MaskLogger

func MaskLogger(logger Logger) Logger

MaskLogger takes a Logger and returns the Logger if not nil, or a NullLogger if it is nil.

type NullLogger

type NullLogger struct{}

NullLogger implements the Logger interface with no-op functions

func (NullLogger) Printf

func (n NullLogger) Printf(_ string, _ ...interface{})

Printf is a no-op print function

Jump to

Keyboard shortcuts

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