From 9ddfa600dba8186b5268d8a6308bd39ee32171b6 Mon Sep 17 00:00:00 2001 From: Christopher Boumenot Date: Fri, 23 Jun 2017 02:42:37 +0000 Subject: [PATCH] go fmt . --- main.go | 6 +++--- unpublish.go | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/main.go b/main.go index 2bf2c0d..2766929 100644 --- a/main.go +++ b/main.go @@ -72,9 +72,9 @@ var ( flJSON = cli.BoolFlag{ Name: "json", Usage: "Print output as JSON"} - flIsXMLExtension = cli.BoolFlag{ - Name: "is-xml-extension", - Usage: "Set if this is an XML extension, i.e. PaaS"} + flIsXMLExtension = cli.BoolFlag{ + Name: "is-xml-extension", + Usage: "Set if this is an XML extension, i.e. PaaS"} ) func main() { diff --git a/unpublish.go b/unpublish.go index 7a9ceb9..989e366 100644 --- a/unpublish.go +++ b/unpublish.go @@ -16,8 +16,8 @@ func unpublishVersion(c *cli.Context) { Name: checkFlag(c, flName.Name), Version: checkFlag(c, flVersion.Name)} - isXMLExtension := c.Bool(flIsXMLExtension.Name) - buf := bytes.NewBufferString(` + isXMLExtension := c.Bool(flIsXMLExtension.Name) + buf := bytes.NewBufferString(` {{.Namespace}} @@ -26,13 +26,13 @@ func unpublishVersion(c *cli.Context) { true `) - // All extension should be a JSON extension. The biggest offenders are - // PaaS extensions. - if !isXMLExtension { - buf.WriteString("true") - } + // All extension should be a JSON extension. The biggest offenders are + // PaaS extensions. + if !isXMLExtension { + buf.WriteString("true") + } - buf.WriteString("") + buf.WriteString("") tpl, err := template.New("unregisterManifest").Parse(buf.String()) if err != nil { log.Fatalf("template parse error: %v", err)