From 7f1f3520ec8598438473301027ea9a9d467c0ad0 Mon Sep 17 00:00:00 2001 From: Diff Date: Fri, 13 Nov 2020 05:35:13 +0000 Subject: [PATCH] Changed SetVenture to use Sprintf for prepending "~username". --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 693f0fe..63e82a0 100644 --- a/main.go +++ b/main.go @@ -116,7 +116,7 @@ func SetVenture(args []string) error { } // Prepend status with user's name - input = "~" + curUser.Username + input + input = fmt.Sprintf("~%s%s", curUser.Username, input) // Write file and create if it doesn't exist as world-readable. err = ioutil.WriteFile(outputPath, []byte(input), 0644)