From 7720d6bff6d723a5bfc9aca9ea22570d8f09d1e7 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Sat, 28 Nov 2015 16:23:46 +0100 Subject: [PATCH] version function --- core.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core.go b/core.go index eecd439f..b3a644c6 100644 --- a/core.go +++ b/core.go @@ -14,6 +14,10 @@ var ( intro = "A stable and unbreakable connection for everyone." ) +func Version() string { + return version +} + func PrintVersion() { fmt.Printf("V2Ray %s (%s) %s%s", version, codename, build, platform.LineSeparator()) fmt.Printf("%s%s", intro, platform.LineSeparator())