1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-08 02:05:31 -05:00

version function

This commit is contained in:
V2Ray
2015-11-28 16:23:46 +01:00
parent 3f0ada1bc8
commit 7720d6bff6

View File

@@ -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())