File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ jobs:
1818 steps :
1919
2020 - name : Set up Go
21- uses : actions/setup-go@v1
21+ uses : actions/setup-go@v2
2222 with :
2323 go-version : 1.16
24- id : go
2524
2625 - name : Check out code into the Go module directory
27- uses : actions/checkout@v1
26+ uses : actions/checkout@v2
2827
2928 - name : Test
3029 run : |
Original file line number Diff line number Diff line change 11module github.com/fatih/faillint
22
3- go 1.13
3+ go 1.16
44
55require (
66 dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package main
33import (
44 "flag"
55 "fmt"
6+ "io"
67 "os"
78
89 "github.com/fatih/faillint/faillint"
@@ -21,6 +22,8 @@ func main() {
2122 ff := flag .NewFlagSet ("faillint" , flag .ContinueOnError )
2223 v := ff .Bool ("V" , false , "print version and exit" )
2324 ff .Usage = func () {}
25+ ff .SetOutput (io .Discard )
26+
2427 ff .Parse (os .Args [1 :])
2528 if * v {
2629 fmt .Printf ("faillint version %s (%s)\n " , version , date )
You can’t perform that action at this time.
0 commit comments