func MapExperiments(rawExperiments []datafileEntities.Experiment, experimentGroupMap map[string]string) (experimentIDMap map[string]entities.Experiment, experimentKeyMap map[string]string) {
	experimentIDMap = make(map[string]entities.Experiment)
	experimentKeyMap = make(map[string]string)
	for _, rawExperiment := range rawExperiments {
		experiment := mapExperiment(rawExperiment)
		experiment.GroupID = experimentGroupMap[experiment.ID]
		experimentIDMap[experiment.ID] = experiment
		experimentKeyMap[experiment.Key] = experiment.ID
	}
	return experimentIDMap, experimentKeyMap
}
MapExperiments maps the raw experiments entities from the datafile to SDK Experiment entities and also returns a map of experiment key to experiment ID
package mappers
import (
	datafileEntities "github.com/optimizely/go-sdk/pkg/config/datafileprojectconfig/entities"
	"github.com/optimizely/go-sdk/pkg/entities"
)