zstyblik / go-facter Goto Github PK
View Code? Open in Web Editor NEWLoose implementation of Puppet Labs facter in golang
License: BSD 3-Clause "New" or "Revised" License
Loose implementation of Puppet Labs facter in golang
License: BSD 3-Clause "New" or "Revised" License
go/pkg/mod/github.com/zstyblik/[email protected]/lib/host/host.go:119:12: undefined: syscall.Utsname
go/pkg/mod/github.com/zstyblik/[email protected]/lib/host/host.go:120:8: undefined: syscall.Uname
nostromo:~$ go version
go version go1.16.13 darwin/amd64
nostromo:~$ uname -a
Darwin nostromo.local 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64 x86_64 i386 Darwin
This is macOS 12.2 (21D49) on x64 with go 1.16.
Resulting from:
nostromo:~$ go install -v github.com/zstyblik/go-facter/cmd/facter@latest
Hi there,
As mentioned in #1, I just came across this and think it's a great implementation of Facter. I've had my own that has its roots in Terminus but I think your version is much cleaner.
With regard to the memory units, would you be interested in implementing memory/swap in the same way that uptime
is represented? If so, I'd be happy to do the work and submit it as a PR.
Having memory represented this way would help with reading in the raw value without having to strip the label off.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.