sysinit_linux.go 130 B

123456789
  1. package sysinit
  2. import (
  3. "syscall"
  4. )
  5. func setHostname(hostname string) error {
  6. return syscall.Sethostname([]byte(hostname))
  7. }