Skip to content

Commit

Permalink
Merge pull request #23 from fatih/update-actions-files
Browse files Browse the repository at this point in the history
ci: update images for setting up Go and checking out the repo
  • Loading branch information
fatih authored Mar 8, 2021
2 parents b94c706 + 98471ad commit dfeee98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ jobs:
steps:

- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: 1.16
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Test
run: |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/fatih/faillint

go 1.13
go 1.16

require (
dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
"io"
"os"

"github.com/fatih/faillint/faillint"
Expand All @@ -21,6 +22,8 @@ func main() {
ff := flag.NewFlagSet("faillint", flag.ContinueOnError)
v := ff.Bool("V", false, "print version and exit")
ff.Usage = func() {}
ff.SetOutput(io.Discard)

ff.Parse(os.Args[1:])
if *v {
fmt.Printf("faillint version %s (%s)\n", version, date)
Expand Down

0 comments on commit dfeee98

Please sign in to comment.