added kernel name command

This commit is contained in:
echo 2022-10-20 09:49:21 +03:30
parent d41849e6f8
commit 275c50f0e9
2 changed files with 5 additions and 3 deletions

View file

@ -45,8 +45,8 @@ func GetKernel() string {
return string(kernel)
}
func GetHostname() string {
cmd := exec.Command("uname", "-n")
func Unamebs(gamering string) string {
cmd := exec.Command("uname", gamering)
shell, _ := cmd.Output()
return strings.Replace(string(shell), "\n", "", -1)
}