From ec2133c7a6011d77925694f9bf4d686531de5896 Mon Sep 17 00:00:00 2001 From: John Wang Date: Sun, 19 Nov 2023 07:29:17 -0800 Subject: [PATCH] lint: golangci: format with `gofmt -s` --- strip.go | 48 +++++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/strip.go b/strip.go index 0818044..030d281 100644 --- a/strip.go +++ b/strip.go @@ -93,12 +93,14 @@ var htmlNormReplacementTable = []string{ //
// var htmlNospaceReplacementTable = []string{ @@ -335,7 +337,9 @@ func (c context) mangle(templateName string) string { // HTML5 parsing algorithm because a single token production in the HTML // grammar may contain embedded actions in a template. For instance, the quoted // HTML attribute produced by -//
+// +//
+// // is a single token in HTML's grammar but in a template spans several nodes. type state uint8 @@ -936,13 +940,19 @@ func newIdentCmd(identifier string, pos parse.Pos) *parse.CommandNode { // nudge returns the context that would result from following empty string // transitions from the input context. // For example, parsing: -// ` -// where {{.X}} evaluates to `javascript:...` +// +// +// where {{.X}} evaluates to `javascript:...` +// // Discussion: -// "ZgotmplZ" is a special value that indicates that unsafe content reached a -// CSS or URL context at runtime. The output of the example will be -// -// If the data comes from a trusted source, use content types to exempt it -// from filtering: URL(`javascript:...`). +// +// "ZgotmplZ" is a special value that indicates that unsafe content reached a +// CSS or URL context at runtime. The output of the example will be +// +// If the data comes from a trusted source, use content types to exempt it +// from filtering: URL(`javascript:...`). const ( // OK indicates the lack of an error. OK ErrorCode = iota @@ -3523,6 +3536,7 @@ func (t *Template) Lookup(name string) *Template { // Must is a helper that wraps a call to a function returning (*Template, error) // and panics if the error is non-nil. It is intended for use in variable initializations // such as +// // var t = template.Must(template.New("name").Parse("html")) func Must(t *Template, err error) *Template { if err != nil {