From e2ad8113e6e2765e0e70eadadf13bc30fa2a0e35 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 5 Feb 2019 22:47:54 +0100 Subject: added go module support --- .gitignore | 1 + Dockerfile | 2 +- go.mod | 7 +++++++ go.sum | 6 ++++++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore index d3beee5..854ada8 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ # Folders _obj _test +vendor # Architecture specific extensions/prefixes *.[568vq] diff --git a/Dockerfile b/Dockerfile index 9fa6413..86f799f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:latest WORKDIR /home -COPY /src /home/ +COPY main.go /home/ RUN ["go", "get", "git.darknebu.la/GalaxySimulator/structs"] RUN ["go", "get", "github.com/ajstarks/svgo"] diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..4390930 --- /dev/null +++ b/go.mod @@ -0,0 +1,7 @@ +module viewer + +require ( + git.darknebu.la/GalaxySimulator/structs v0.0.0-20190205205735-9dd56b9448e5 + github.com/ajstarks/svgo v0.0.0-20181006003313-6ce6a3bcf6cd + github.com/gorilla/mux v1.7.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..3c4838a --- /dev/null +++ b/go.sum @@ -0,0 +1,6 @@ +git.darknebu.la/GalaxySimulator/structs v0.0.0-20190205205735-9dd56b9448e5 h1:aEQHEERwdLfRJrXb867wZzRMs1ym+j0zDys3opLWPew= +git.darknebu.la/GalaxySimulator/structs v0.0.0-20190205205735-9dd56b9448e5/go.mod h1:LSDIBBC7IcWERm4wlDAroMpsUP7zJ1yDZFlQnP/UIsQ= +github.com/ajstarks/svgo v0.0.0-20181006003313-6ce6a3bcf6cd h1:JdtityihAc6A+gVfYh6vGXfZQg+XOLyBvla/7NbXFCg= +github.com/ajstarks/svgo v0.0.0-20181006003313-6ce6a3bcf6cd/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= +github.com/gorilla/mux v1.7.0 h1:tOSd0UKHQd6urX6ApfOn4XdBMY6Sh1MfxV3kmaazO+U= +github.com/gorilla/mux v1.7.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -- cgit 1.4.1