code: func pinWrite(pin *sysfs.DigitalPin, dir string, level int) (err error) {
  	if err = pin.Direction(dir); err != nil {
  		return
  	}
  
  	err = pin.Write(level)
  	return
  }
docs: // pinWrite sets Direction and writes level for a specific pin