summaryrefslogtreecommitdiffstats
path: root/output/docshelper.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-02 13:23:25 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-03 13:12:58 +0100
commitd90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch)
tree7b1b14464eefec1188ca2eed53c64e4823453cc9 /output/docshelper.go
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'output/docshelper.go')
-rw-r--r--output/docshelper.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/output/docshelper.go b/output/docshelper.go
index 450c323d1..42b871ab5 100644
--- a/output/docshelper.go
+++ b/output/docshelper.go
@@ -23,7 +23,6 @@ func init() {
}
func createLayoutExamples() interface{} {
-
type Example struct {
Example string
Kind string
@@ -78,11 +77,11 @@ func createLayoutExamples() interface{} {
Kind: example.d.Kind,
OutputFormat: example.f.Name,
Suffix: example.f.MediaType.Suffix(),
- Layouts: makeLayoutsPresentable(layouts)})
+ Layouts: makeLayoutsPresentable(layouts),
+ })
}
return basicExamples
-
}
func makeLayoutsPresentable(l []string) []string {