Skip to content

Commit 8c7e7c0

Browse files
authored
Fix acmd usage (#18)
1 parent 4b89244 commit 8c7e7c0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/go-perf/go-perftuner
22

33
go 1.10
44

5-
require github.com/cristalhq/acmd v0.8.0
5+
require github.com/cristalhq/acmd v0.11.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/cristalhq/acmd v0.8.0 h1:0NFc0ixjHMJ1kJyoBZoklcSgw4PGBpD6XRuMv733xEg=
2-
github.com/cristalhq/acmd v0.8.0/go.mod h1:LG5oa43pE/BbxtfMoImHCQN++0Su7dzipdgBjMCBVDQ=
1+
github.com/cristalhq/acmd v0.11.0 h1:49ywYIoZb91TQgiqhaCVGHkKuH4yofsCkpllVW1Wan8=
2+
github.com/cristalhq/acmd v0.11.0/go.mod h1:LG5oa43pE/BbxtfMoImHCQN++0Su7dzipdgBjMCBVDQ=

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ var cmds = []acmd.Command{
3636
Name: "almostInlined",
3737
Alias: "inl",
3838
Description: "find functions that cross inlining threshold just barely",
39-
Do: func(_ context.Context, _ []string) error {
39+
ExecFunc: func(_ context.Context, _ []string) error {
4040
return run(&almostInlinedRunner{})
4141
},
4242
},
4343
{
4444
Name: "escapedVariables",
4545
Alias: "esc",
4646
Description: "find variables that are escaped to the heap",
47-
Do: func(_ context.Context, _ []string) error {
47+
ExecFunc: func(_ context.Context, _ []string) error {
4848
return run(&escapeAnalysisRunner{})
4949
},
5050
},
5151
{
5252
Name: "boundChecks",
5353
Alias: "bce",
5454
Description: "find slice/array that has bound check",
55-
Do: func(_ context.Context, _ []string) error {
55+
ExecFunc: func(_ context.Context, _ []string) error {
5656
return run(&boundCheckRunner{})
5757
},
5858
},

0 commit comments

Comments
 (0)