lorenzosaino / go-sysctl

Go wrapper around the sysctl interface
BSD 3-Clause "New" or "Revised" License
53 stars 9 forks source link

Please support FreeBSD #7

Open yurivict opened 3 weeks ago

yurivict commented 3 weeks ago

Currently go-sysctl is Linux only.

There is the FreeBSD Golang module https://github.com/blabber/go-freebsd-sysctl that works on FreeBSD.

Could you please merge in at least the GetInt64 and GetString functions from https://github.com/blabber/go-freebsd-sysctl ?

Thank you, Yuri

lorenzosaino commented 3 weeks ago

That would be a useful extension. I will look into it when I have time.

Implementation-wide, however, I would go with implementing the existing method (Get/GetAll/GetPattern/Set) for FreeBSD and gate it behind a build constraint.

I'd also be happy to accept pull requests implementing it.