package
Version:
v0.0.0-...-5283a38
Opens a new window with list of versions in this module.
Published: Apr 16, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
TimeTrack prints the execution time of a specific function.
Example:
func myFunction() int {
defer timeTrack(time.Now(), "myFunction")
// ... do some things, maybe even return under some condition
return result
}
type Log struct {
Context string
}
Log provides logging methods. Provide the given context (file or package name for example)
to be displayed in the log messages.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.