From 593e66560611ca9b8df2d3c65d0334d193282fa0 Mon Sep 17 00:00:00 2001 From: Foil-hat-guy Date: Sun, 20 Apr 2025 02:49:35 +0300 Subject: [PATCH] Fixed code section. --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 24d1f9a..8dd5694 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( const warning = "//WARNING! DO NOT EDIT THIS FILE BY HAND. IT IS AUTO GENERATED.\n" -const header = "package main\nconst gitVersion = \"" +const header = "package main\n" const code = ` import ( @@ -25,7 +25,7 @@ func init() { } } } -` +const gitVersion = "` func main() { cmd := exec.Command("git", "describe", "--tags", "--abbrev=0") @@ -36,7 +36,7 @@ func main() { } version := string(out) version = version[:len(version)-1] - content := warning + header + version + "\"" + code + content := warning + header + code + version + "\"" ioutil.WriteFile("version.go", []byte(content), 0644) }