// +build linux package power // powerSource returns the name of the current power source, probably one of // "AC Power" or "Battery Power" func powerSource() string { switch batteryState { case "charging": return "AC Power" case "discharging": return "Battery Power" } return batteryState }