aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-21 02:15:13 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-21 02:15:13 +0200
commit1bd04c1b1191aade27943fd1b3bdb04c9f2a94cc (patch)
tree9257c2e48615df2e998c1703a210a0a7c36d7ce0
parent169b87ee7713867ad9492b99622754b6b8a34cdd (diff)
Run ‘go fmt’
-rw-r--r--formatter/formatter_test.go4
-rw-r--r--parser/parser.go3
2 files changed, 4 insertions, 3 deletions
diff --git a/formatter/formatter_test.go b/formatter/formatter_test.go
index 6274b1f..132059a 100644
--- a/formatter/formatter_test.go
+++ b/formatter/formatter_test.go
@@ -202,8 +202,8 @@ func TestPrintChildrenTrimMixed(t *testing.T) {
}
printChildrenTrim([]parser.AstNode{
{
- Type: parser.Normal,
- Text: "em",
+ Type: parser.Normal,
+ Text: "em",
Children: children,
},
{
diff --git a/parser/parser.go b/parser/parser.go
index 2e45587..648cfe7 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -58,7 +58,8 @@ func ParseFile(file *os.File) (AstNode, error) {
} else {
document.Children = append(document.Children, node)
}
- } }
+ }
+}
// parseNode parses the next node in the GSP document, and may call itself
// recursively on any child nodes.