Documentation ¶
Overview ¶
Package util provides various utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseName ¶
BaseName - as the basename Unix tool - deletes any prefix ending with the last slash character present in a string, and a suffix, if given.
func InDir ¶ added in v0.7.0
func InDir(dir string, f func())
InDir runs a function inside a specific directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.