switch to go vendoring

This commit is contained in:
Michael Barz
2023-04-19 20:24:34 +02:00
parent 632fa05ef9
commit afc6ed1e41
8527 changed files with 3004916 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
// Package sysutil provide some system util functions. eg: sysenv, exec, user, process
package sysutil
import (
"os"
"path"
)
// Workdir get
func Workdir() string {
dir, _ := os.Getwd()
return dir
}
// BinDir get
func BinDir() string {
binFile := os.Args[0]
return path.Dir(binFile)
}
// BinFile get
func BinFile() string {
return os.Args[0]
}