From 88bc91837d9de5033889a125d36e4bfdb5aecea4 Mon Sep 17 00:00:00 2001 From: Kordian Bruck Date: Fri, 18 Feb 2022 00:10:04 +0100 Subject: [PATCH] Add go module and update to Go 1.17 as minimum requirement. --- .gitignore | 1 + README.md | 6 ++---- go.mod | 15 +++++++++++++++ go.sum | 13 +++++++++++++ 4 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore index b444901..82d3032 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ # Folders _obj _test +.idea # Architecture specific extensions/prefixes *.[568vq] diff --git a/README.md b/README.md index a57e7e8..6c03601 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,9 @@ ## Dependencies * A [working](https://golang.org/doc/install#testing) [Go](https://golang.org/) - [1.5](https://golang.org/doc/go1.5) environment (You can use - [goenv](https://github.com/pwoolcoc/goenv) if your distribution does not - support Go 1.5 yet) + [1.17](https://golang.org/doc/go1.17) environment * utf-8 terminal with 256 colors -* A sane monospaced font containing all the required runes (I use `dejavu sans +* A monospaced font containing all the required runes (I use `dejavu sans mono`) * An API key for the backend (see Setup below) diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..c2ddaec --- /dev/null +++ b/go.mod @@ -0,0 +1,15 @@ +module github.com/schachmat/wego + +go 1.17 + +require ( + github.com/mattn/go-colorable v0.1.12 + github.com/mattn/go-runewidth v0.0.13 + github.com/schachmat/ingo v0.0.0-20170403011506-a4bdc0729a3f +) + +require ( + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/rivo/uniseg v0.2.0 // indirect + golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..8946681 --- /dev/null +++ b/go.sum @@ -0,0 +1,13 @@ +github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= +github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/schachmat/ingo v0.0.0-20170403011506-a4bdc0729a3f h1:LVVgdfybimT/BiUdv92Jl2GKh8I6ixWcQkMUxZOcM+A= +github.com/schachmat/ingo v0.0.0-20170403011506-a4bdc0729a3f/go.mod h1:WCPgQqzEa4YPOI8WKplmQu5WyU+BdI1cioHNkzWScP8= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 h1:foEbQz/B0Oz6YIqu/69kfXPYeFQAuuMYFkjaqXzl5Wo= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=