Skip to content

Commit 569c7d7

Browse files
committed
Sort func names
1 parent 7e99301 commit 569c7d7

File tree

3 files changed

+589
-584
lines changed

3 files changed

+589
-584
lines changed

modules/notification/base/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"go/parser"
1515
"go/token"
1616
"io/ioutil"
17+
"sort"
1718
"strings"
1819
"text/template"
1920
"time"
@@ -126,6 +127,10 @@ func main() {
126127
return false
127128
})
128129

130+
sort.Slice(funcs, func(i, j int) bool {
131+
return funcs[i].Name < funcs[j].Name
132+
})
133+
129134
// First lets create the NullNotifier
130135
buf := bytes.Buffer{}
131136
nullTemplate.Execute(&buf, struct {

modules/notification/base/null.go

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)