Files
grafana/pkg/plugins/backend_utils.go
T

20 lines
329 B
Go
Raw Normal View History

2018-05-24 15:26:27 +02:00
package plugins
import (
"fmt"
"runtime"
"strings"
)
func ComposePluginStartCommand(executable string) string {
2018-05-24 15:26:27 +02:00
os := strings.ToLower(runtime.GOOS)
arch := runtime.GOARCH
extension := ""
if os == "windows" {
extension = ".exe"
}
return fmt.Sprintf("%s_%s_%s%s", executable, os, strings.ToLower(arch), extension)
}