/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/utils/bin_path.go
19 строк
436 B
Song Gao
readlink in BinPath and get rid of osext (#15348)
18 янв 2019, 00:03
Не верифицирован
18 янв 2019, 00:03
35ce33f
Код
Авторство
О чём код?
// Copyright 2019 Keybase, Inc. All rights reserved. Use of this // source code is governed by the included BSD license. package utils import ( "os" "path/filepath" ) // BinPath returns path to the keybase executable. If the executable path is a // symlink, the target path is returned. func BinPath() (string, error) { exePath, err := os.Executable() if err != nil { return "", err } return filepath.EvalSymlinks(exePath) }