Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 844 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 844 Bytes

sysctl

build.yaml Go Reference golangci.yaml

Package sysctl inspired by systemd's sysctl source code and kubernetes's sysctl subpackage.

Install

go get github.com/go-laeo/sysctl

Example

// disables all ipv6
sysctl.Set("net.ipv6.conf.all.disable_ipv6", "1")

// check if ipv6 has disabled
disabled, err := sysctl.GetBool("net.ipv6.conf.all.disable_ipv6")

License

The MIT License.