var enabledMonFeatures … type monFeatures … func getMonFeatures(intelRdtRoot string) (monFeatures, error) { … } func parseMonFeatures(reader io.Reader) (monFeatures, error) { … } func getMonitoringStats(containerPath string, stats *Stats) error { … }