Skip to content

Commit

Permalink
fix: update tools.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Feb 27, 2023
1 parent bf47ce2 commit 07a1c49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modulegen/_template/tools.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build tools
// +build tools

// This package contains the tool dependencies of the {{ Title }} example.
// This package contains the tool dependencies of the {{ Title }} {{ ExampleType }}.

package tools

Expand Down
2 changes: 1 addition & 1 deletion modulegen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,6 @@ func assertToolsGoContent(t *testing.T, example Example, tools string) {
assert.Nil(t, err)

data := strings.Split(string(content), "\n")
assert.Equal(t, data[3], "// This package contains the tool dependencies of the "+example.Title()+" example.")
assert.Equal(t, data[3], "// This package contains the tool dependencies of the "+example.Title()+" "+example.Type()+".")
assert.Equal(t, data[5], "package tools")
}

0 comments on commit 07a1c49

Please sign in to comment.