OK leading v is best practice

This commit is contained in:
Justin Hawkins 2022-01-16 23:02:29 +10:30
parent 7836f2ffbf
commit f5e438602f
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ open my $fh, "<", "main.go" || die $!;
my $version;
while (<$fh>) {
# CurrentVersion: "v0.04"
$version = $1 if /CurrentVersion\s*=\s*"([\d\.]+)"/;
$version = $1 if /CurrentVersion\s*=\s*"(v[\d\.]+)"/;
}
close $fh;

View File

@ -11,7 +11,7 @@ import (
"github.com/spf13/viper"
)
var CurrentVersion = "0.0.1"
var CurrentVersion = "v0.0.1"
func main() {
isServer := flag.Bool("server", false, "Run netgiv in server mode")