code: func pathToMap(path string, data map[string]interface{}) map[string]interface{} {
  	if path == "." {
  		return data
  	}
  	ap := strings.Split(path, ".")
  	if len(ap) == 0 {
  		return nil
  	}
  	n := []map[string]interface{}{}
  	// created nested map for each key, adding to slice
  	for _, v := range ap {
  		nm := make(map[string]interface{})
  		nm[v] = make(map[string]interface{})
  		n = append(n, nm)
  	}
  	// find the last key (map) and set our data
  	for i, d := range n {
  		for k := range d {
  			z := i + 1
  			if z == len(n) {
  				n[i][k] = data
  				break
  			}
  			n[i][k] = n[z]
  		}
  	}
  
  	return n[0]
  }
docs: // pathToMap creates a nested map given a YAML path in dot notation.