Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
CreateFile creates a new file in the given path, creating parent directories as necessary
func GenerateFn ¶
func GenerateFn(pattern *strftime.Strftime, clock interface{ Now() time.Time }, rotationTime time.Duration) string
GenerateFn creates a file name based on the pattern, the current time, and the rotation time.
The bsase time that is used to generate the filename is truncated based on the rotation time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.