Skip to content

Commit 6428b28

Browse files
authored
Merge pull request #14 from eleniums/convert-modules
Convert to Go Modules
2 parents 1bb79bc + 5966a98 commit 6428b28

File tree

1,193 files changed

+92
-1004098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,193 files changed

+92
-1004098
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: go
22

33
go:
4-
- 1.11.x
54
- 1.12.x
65
- 1.13.x
6+
- 1.14.x
77
- master
88

99
sudo: false

Gopkg.lock

-150
This file was deleted.

Gopkg.toml

-33
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ go run ./cmd/game/main.go
2020

2121
## Prerequisites
2222

23-
- Requires Go 1.8 or later
23+
- Requires Go 1.11 or later
2424
- Requires GCC (Windows: follow instructions [here](https://github.com/faiface/pixel/wiki/Building-Pixel-on-Windows) to install [MSYS2](http://www.msys2.org) and [MinGW](http://www.mingw.org))
2525
- Requires GLFW (follow instructions [here](https://github.com/go-gl/glfw#installation) to install)
2626
- Uses [xgo](https://github.com/karalabe/xgo) for cross-compiling with CGO

game/grid.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
package game
22

3-
// Grid is a grid of values of any type.
3+
// Grid of cells.
44
type Grid map[Position]CellType
55

66
// NewGrid will create a new empty grid.
77
func NewGrid() Grid {
88
return Grid{}
99
}
1010

11-
// Add value at position (x, y).
11+
// Add cell at position (x, y).
1212
func (g Grid) Add(x, y int, value CellType) {
1313
g[NewPosition(x, y)] = value
1414
}
1515

16-
// Retrieve value at position (x, y).
16+
// Retrieve cell at position (x, y).
1717
func (g Grid) Retrieve(x, y int) (interface{}, bool) {
1818
value, ok := g[NewPosition(x, y)]
1919
return value, ok
2020
}
2121

22-
// Delete value at position (x, y).
22+
// Delete cell at position (x, y).
2323
func (g Grid) Delete(x, y int) {
2424
delete(g, NewPosition(x, y))
2525
}

go.mod

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module github.com/eleniums/game-of-life-go
2+
3+
go 1.11
4+
5+
require (
6+
github.com/davecgh/go-spew v1.1.1 // indirect
7+
github.com/faiface/glhf v0.0.0-20181018222622-82a6317ac380 // indirect
8+
github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3 // indirect
9+
github.com/faiface/pixel v0.8.0
10+
github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7 // indirect
11+
github.com/go-gl/glfw v0.0.0-20191125211704-12ad95a8df72 // indirect
12+
github.com/go-gl/mathgl v0.0.0-20190713194549-592312d8590a // indirect
13+
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
14+
github.com/pkg/errors v0.8.1 // indirect
15+
github.com/stretchr/testify v1.4.0
16+
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
17+
gopkg.in/yaml.v2 v2.2.7 // indirect
18+
)

go.sum

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
2+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
3+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4+
github.com/faiface/glhf v0.0.0-20181018222622-82a6317ac380 h1:FvZ0mIGh6b3kOITxUnxS3tLZMh7yEoHo75v3/AgUqg0=
5+
github.com/faiface/glhf v0.0.0-20181018222622-82a6317ac380/go.mod h1:zqnPFFIuYFFxl7uH2gYByJwIVKG7fRqlqQCbzAnHs9g=
6+
github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3 h1:baVdMKlASEHrj19iqjARrPbaRisD7EuZEVJj6ZMLl1Q=
7+
github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3/go.mod h1:VEPNJUlxl5KdWjDvz6Q1l+rJlxF2i6xqDeGuGAxa87M=
8+
github.com/faiface/pixel v0.8.0 h1:phOHW6ixfMAKRamjnvhI6FFI2VRyPEq7+LmmkDGXB/4=
9+
github.com/faiface/pixel v0.8.0/go.mod h1:CEUU/s9E82Kqp01Boj1O67KnBskqiLghANqvUJGgDAM=
10+
github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7 h1:SCYMcCJ89LjRGwEa0tRluNRiMjZHalQZrVrvTbPh+qw=
11+
github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7/go.mod h1:482civXOzJJCPzJ4ZOX/pwvXBWSnzD4OKMdH4ClKGbk=
12+
github.com/go-gl/glfw v0.0.0-20191125211704-12ad95a8df72 h1:LgLYrxDRSVv3kStk6louYTP1ekZ6t7HZY/X05KUyaeM=
13+
github.com/go-gl/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
14+
github.com/go-gl/mathgl v0.0.0-20190713194549-592312d8590a h1:yoAEv7yeWqfL/l9A/J5QOndXIJCldv+uuQB1DSNQbS0=
15+
github.com/go-gl/mathgl v0.0.0-20190713194549-592312d8590a/go.mod h1:yhpkQzEiH9yPyxDUGzkmgScbaBVlhC06qodikEM0ZwQ=
16+
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
17+
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
18+
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
19+
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
20+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
21+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
22+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
23+
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
24+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
25+
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
26+
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U=
27+
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
28+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
29+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
30+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
31+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
32+
gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=
33+
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

vendor/github.com/davecgh/go-spew/.gitignore

-22
This file was deleted.

vendor/github.com/davecgh/go-spew/.travis.yml

-28
This file was deleted.

0 commit comments

Comments
 (0)