github.com/schwarzm/garden-linux@v0.0.0-20150507151835-33bca2147c47/network/hostname_notlinux.go (about) 1 // +build !linux 2 3 package network 4 5 type hostNameSetter struct{} 6 7 func newHostname() *hostNameSetter { 8 return &hostNameSetter{} 9 } 10 11 func (*hostNameSetter) SetHostname(hostName string) error { 12 panic("not supported on this OS") 13 }