diff --git a/cmd/spoof-dpi/main.go b/cmd/spoof-dpi/main.go index 234e749..d143053 100644 --- a/cmd/spoof-dpi/main.go +++ b/cmd/spoof-dpi/main.go @@ -17,7 +17,7 @@ func main() { util.ParseArgs() config := util.GetConfig() if *config.Version { - PrintVersion() + version.PrintVersion() os.Exit(0) } diff --git a/.version b/version/VERSION similarity index 100% rename from .version rename to version/VERSION diff --git a/version.go b/version/version.go similarity index 91% rename from version.go rename to version/version.go index fa8029b..46159c0 100644 --- a/version.go +++ b/version/version.go @@ -2,7 +2,7 @@ package version import _ "embed" -//go:embed .version +//go:embed VERSION var VERSION string func PrintVersion() {