https://github.com/msaf1980/go-uname
Golang wrapper for uname syscall
https://github.com/msaf1980/go-uname
golang uname
Last synced: about 2 months ago
JSON representation
Golang wrapper for uname syscall
- Host: GitHub
- URL: https://github.com/msaf1980/go-uname
- Owner: msaf1980
- License: mit
- Created: 2021-05-26T13:53:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T13:57:47.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T04:42:16.141Z (3 months ago)
- Topics: golang, uname
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-uname
Wrapper for syscall uname
```
import (
uname "github.com/msaf1980/go-uname"
)..
u, err := uname.New()
if err == nil {
machine := u.Machine()
sysname := u.Sysname()
nodename := u.Nodename()
kernelVersion := u.KernelVersion()
kernelRelease := u.KernelRelease()
}
```