github.com/geofffranks/garden-linux@v0.0.0-20160715111146-26c893169cfa/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 }