internal

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = newConditionalLogger(os.Stderr, "go-hbci: ", debugFlags, &debugMode)

Debug is a logger which logs when debugMode is enabled. If disabled, it executes a noop

View Source
var Info = newConditionalLogger(os.Stderr, "go-hbci: ", log.LstdFlags, &infoMode)

Info is a logger which logs when infoMode is enabled. If disabled, it executes a noop

Functions

func DebugMode

func DebugMode() bool

DebugMode returns true if debugMode is set, false otherwise

func InfoLog

func InfoLog() bool

InfoLog returns true if logging to info level is enabled, false otherwise

func SetDebugMode

func SetDebugMode(debug bool)

SetDebugMode sets the debug mode

func SetInfoLog

func SetInfoLog(info bool)

SetInfoLog sets whether the info log should be enabled

func WithDebugLogging

func WithDebugLogging(fn func())

WithDebugLogging enables debug logging for the given function fn

Types

type Iterator added in v0.4.0

type Iterator interface {
	Next() []byte
	NextString() string
	HasNext() bool
	Remainder() [][]byte
}

func NewIterator added in v0.4.0

func NewIterator(data [][]byte) Iterator

Jump to

Keyboard shortcuts

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