Skip to content

Commit dfeee98

Browse files
authored
Merge pull request #23 from fatih/update-actions-files
ci: update images for setting up Go and checking out the repo
2 parents b94c706 + 98471ad commit dfeee98

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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: |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/fatih/faillint
22

3-
go 1.13
3+
go 1.16
44

55
require (
66
dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
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)

0 commit comments

Comments
 (0)