global

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package global holds global values for all packages.

Including package main in other packages will result in aforbidden import cycle. Therefore package global serves as glue.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Verbose gives additional informal output
	Verbose bool // init value is 'false'

	// OsExit is a function pointer to os.Exit.
	//
	// For unit tests this value can be changed to avoid leaving the test function immediately.
	// This is good for code under your control.
	//
	// To test code calling os.Exit() implicitely, like when log.Fatal() is used,
	// see https://stackoverflow.com/questions/26225513/how-to-test-os-exit-scenarios-in-go.
	OsExit func(code int) = os.Exit
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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