go-facter is a loose implementation of Puppet Labs facter in golang. The main target are platforms where there isn't possible or feasible to install Ruby, eg. CoreOS. Also, you can run it in Docker Container and still get data from the Host itself.
In theory, go-facter can be used as a library of sort to build custom facts.
BSD 3-Clause ("BSD New" or "BSD Simplified") licence.
HOST_ETC
- specify alternative path to/etc
directoryHOST_PROC
- specify alternative path to/proc
mountpointHOST_SYS
- specify alternative path to/sys
mountpoint
- go v1.5 or newer is required
go get github.com/3hedgehogs/go-facter/...
cd ~/go/src/github.com/3hedgehogs/go-facter
go build ./cmd/facter