gfwproxyshadowsocksdocker-imagegogolanggvisornatnetworksocks4socks5tcpip-stacktortun-devicetun2sockstunneludpwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
551 B
27 lines
551 B
package version
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
"strings"
|
|
)
|
|
|
|
const Name = "tun2socks"
|
|
|
|
var (
|
|
// Version can be set at link time by executing
|
|
// the command: `git describe --abbrev=0 --tags HEAD`
|
|
Version string
|
|
|
|
// GitCommit can be set at link time by executing
|
|
// the command: `git rev-parse --short HEAD`
|
|
GitCommit string
|
|
)
|
|
|
|
func String() string {
|
|
return fmt.Sprintf("%s-%s", Name, strings.TrimPrefix(Version, "v"))
|
|
}
|
|
|
|
func BuildString() string {
|
|
return fmt.Sprintf("%s/%s, %s, %s", runtime.GOOS, runtime.GOARCH, runtime.Version(), GitCommit)
|
|
}
|
|
|