Update the Go version in go.mod to 1.18 (#1132)

* Replace functions from `ioutil` with same functions from `io`

This is demanded by staticcheck if we upgrade the go version in go.mod.

* Replace ioutil.ReadDir with os.ReadDir

* Update Go version to 1.18 in go.mod

This requires abandoning use of the `ioutil` module (see parent commits)
to pass `staticcheck`.
This commit is contained in:
Ilya Grigoriev authored and GitHub committed 2023-02-26 01:01:04 +03:00
1 parent b02fd42df4
commit 7a7e81e88c
4 files changed
+18 -14

No files matched your search

+9 -2
View File
@@ -1,11 +1,18 @@
module github.com/gokcehan/lf
go 1.12
go 1.18
require (
github.com/djherbis/times v1.5.0
github.com/gdamore/tcell/v2 v2.5.4-0.20221019011350-d3cbfcfb7aa3
github.com/mattn/go-runewidth v0.0.14
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
github.com/djherbis/times v1.5.0
)
require (
github.com/gdamore/encoding v1.0.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
golang.org/x/text v0.4.0 // indirect
)