summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/gobang.go1
2 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c5cd3aa..4adcdce 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@ tests/main.bin: tests/main.a
go tool link $(GOLDFLAGS) -o $@ -L $(@D) --extldflags '$(LDLIBS)' $*.a
src/version.go: Makefile
- echo 'package $(NAME); var version = "$(VERSION)"' > $@
+ echo 'package $(NAME); const Version = "$(VERSION)"' > $@
diff --git a/src/gobang.go b/src/gobang.go
index f27cdea..dabdc69 100644
--- a/src/gobang.go
+++ b/src/gobang.go
@@ -54,7 +54,6 @@ var (
level LogLevel = LevelInfo
emitMetric bool = true
hostname string
- Version = version
)