From a9f95b12e7dd44a128831748195c5456e757fbdc Mon Sep 17 00:00:00 2001 From: "Hristos N. Triantafillou" Date: Fri, 28 Aug 2020 21:40:31 -0500 Subject: [PATCH] Style nits, and a note --- obpmg.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/obpmg.go b/obpmg.go index 83c9038..943472c 100644 --- a/obpmg.go +++ b/obpmg.go @@ -24,11 +24,12 @@ import ( "sort" "time" + //TODO: use this instead of cli https://github.com/skeeto/optparse-go "github.com/urfave/cli/v2" "gopkg.in/yaml.v2" ) -const obpmg_version = "v0.5" +const obpmgVersion = "v0.5" type xmlAction struct { XMLName xml.Name `xml:"action"` @@ -105,7 +106,7 @@ func cliApp() *cli.App { app := &cli.App{ Name: "obpmg", - Version: obpmg_version, + Version: obpmgVersion, Compiled: time.Now(), Usage: "Generate an Openbox pipe menu from a yaml file.", UsageText: "obpmg [--nosort] -f /path/to/myfile.yml", @@ -149,7 +150,7 @@ func cliApp() *cli.App { return app } -func toXml(x *xmlOpenboxPipeMenu) []byte { +func toXML(x *xmlOpenboxPipeMenu) []byte { o, err := xml.MarshalIndent(x, "", " ") if err != nil { log.Fatal(err) -- 2.45.2