package
Version:
v1.7.4
Opens a new window with list of versions in this module.
Published: Aug 28, 2023
License: BSD-2-Clause, ISC
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Close calls close on the global tee instance.
Open will attempt to open the logFile for the global tee instance.
Printf formats according to a format specifier and writes to the
global tee.
func SetVerbose(verbose bool)
SetVerbose controls the verbosity of the global tee.
VPrintf calls VPrintf on the global tee instance.
type Tee struct {
Verbose bool
}
Tee emulates the Unix tee(1) command.
NewOut writes to standard output only. The file is created, not
appended to.
Close calls Close on the underlying file.
Printf formats according to a format specifier and writes to the
tee instance.
VPrintf is a variant of Printf that only prints if the Tee's
Verbose flag is set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.