1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Clean up the MakeWidgets process by miniming the number of params passed around

This commit is contained in:
Chris Cummer
2019-07-26 21:45:21 -07:00
parent 6de0449b8c
commit 324666a3ec
5 changed files with 72 additions and 65 deletions

View File

@@ -23,6 +23,11 @@ const TimestampFormat = "2006-01-02T15:04:05-0700"
var OpenFileUtil = "open"
// Init initializes global settings in the wtf package
func Init(openFileUtil string) {
OpenFileUtil = openFileUtil
}
// CenterText takes a string and a width and pads the left and right of the string with
// empty spaces to ensure that the string is in the middle of the returned value
//