From eaec4d7080cdc4d83ffe1fa539b72fadfd86145d Mon Sep 17 00:00:00 2001 From: Yoshi Yamaguchi <145104+ymotongpoo@users.noreply.github.com> Date: Sat, 13 Jun 2020 17:14:39 +0900 Subject: [PATCH 1/2] Change back tick to single quote --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index a2bbf13..a9e76d0 100644 --- a/template.go +++ b/template.go @@ -93,7 +93,7 @@ import ( ) // flags for Analyzer.Flag. -// If you would like to specify flags for your plugin, you can put them via `ldflags` as below. +// If you would like to specify flags for your plugin, you can put them via 'ldflags' as below. // $ go build -buildmode=plugin -ldflags "-X 'main.flags=-opt val'" {{.ImportPath}}/plugin/{{.Pkg} var flags string From bd7d7602946d78b40befdf959aeda96640c63c37 Mon Sep 17 00:00:00 2001 From: Yoshi Yamaguchi <145104+ymotongpoo@users.noreply.github.com> Date: Sat, 13 Jun 2020 20:50:28 +0900 Subject: [PATCH 2/2] Fix another bug prone typo This change fixes the following error: ``` $ skeleton -path="github.com/ymotongpoo/diazo" panic: template: main.go:16: unexpected "}" in operand goroutine 1 [running]: text/template.Must(0x0, 0x60e780, 0xc00009e0c0, 0x0) /opt/go/go1.14.2/src/text/template/helper.go:23 +0x54 main.init() /home/ymotongpoo/go/src/github.com/gostaticanalysis/skeleton/template.go:82 +0x25b ``` --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index a9e76d0..eeecd5b 100644 --- a/template.go +++ b/template.go @@ -94,7 +94,7 @@ import ( // flags for Analyzer.Flag. // If you would like to specify flags for your plugin, you can put them via 'ldflags' as below. -// $ go build -buildmode=plugin -ldflags "-X 'main.flags=-opt val'" {{.ImportPath}}/plugin/{{.Pkg} +// $ go build -buildmode=plugin -ldflags "-X 'main.flags=-opt val'" {{.ImportPath}}/plugin/{{.Pkg}} var flags string // AnalyzerPlugin provides analyzers as a plugin.