2020-04-08 00:28:09 +08:00
|
|
|
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2021-08-06 06:42:39 +08:00
|
|
|
//go:build (go1.16 && ios) || (!go1.16 && darwin && arm64)
|
2020-12-19 18:16:44 +08:00
|
|
|
// +build go1.16,ios !go1.16,darwin,arm64
|
2020-04-08 00:28:09 +08:00
|
|
|
|
|
|
|
package version
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
|
|
|
func CmdName() string {
|
|
|
|
e, err := os.Executable()
|
|
|
|
if err != nil {
|
|
|
|
return "cmd"
|
|
|
|
}
|
|
|
|
return e
|
|
|
|
}
|