Skip to content

Commit

Permalink
Bump go version. 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
trezorg committed Feb 10, 2022
1 parent a103ccd commit b1e4d51
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
module github.com/trezorg/lingualeo

go 1.16
go 1.17

require (
github.com/BurntSushi/toml v0.3.1
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/sirupsen/logrus v1.5.0
github.com/stretchr/testify v1.4.0
github.com/urfave/cli/v2 v2.2.0
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0
golang.org/x/net v0.0.0-20200421231249-e086a090c8fd
gopkg.in/yaml.v2 v2.2.8
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.0.1 // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.8
)
2 changes: 1 addition & 1 deletion pkg/files/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/trezorg/lingualeo/pkg/heap"
)

// OrderedChannel gets cahnnel and returns channel ordered by GetIndex
// OrderedChannel gets channel and returns channel ordered by GetIndex
func OrderedChannel(input <-chan File, count int) <-chan File {
out := make(chan File, count)

Expand Down
2 changes: 1 addition & 1 deletion pkg/files/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewFileDownloader(url string) Downloader {
return &FileDownloader{URL: url}
}

// GetWriter prepares WriteCloser for termporary file
// GetWriter prepares WriteCloser for temporary file
func (f *FileDownloader) GetWriter() (io.WriteCloser, string, error) {
fl, err := ioutil.TempFile(filePath, fileTemplate)
if err != nil {
Expand Down

0 comments on commit b1e4d51

Please sign in to comment.