Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecutableName ¶
ExecutableName return the name of the running executable
func OpenFreshDB ¶
func OpenFreshDB() (*nodedb.Connection, error)
OpenFreshDB removes an existing '<executable name>.db' file and create a new one. It returns an open nodedb.Connection. Use defer conn.Close() to perform close and clean up when main function terminates.
func StartLogFile ¶
StartLogFile opens (or creates) a log file name after the running executable
func StartTimer ¶
func StartTimer(name string) func()
StartTimer provides a quick and easy timer, just pass a name and call the returned function when done to stop the timer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.