utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringContainedInSlice

func StringContainedInSlice(a string, list []string) (bool, string)

StringContainedInSlice ...

Types

type Logger

type Logger interface {
	Info(msg string)
	Warn(msg string)
	Fatal(msg string)
	Debug(msg string)
	Infof(msg string, args ...interface{})
	Warnf(msg string, args ...interface{})
	Fatalf(msg string, args ...interface{})
	Debugf(msg string, args ...interface{})
}

Logger Interface

func NewLogger

func NewLogger(output *os.File, component string) (Logger, error)

NewLogger creates a new logger instance.

Jump to

Keyboard shortcuts

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