You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: env_tomap_windows.go
    path of file: ./repos/env
    
    the code of the file until where you have to start completion: //go:build windows

package env

import "strings"

func toMap(env []string) map[string]string {
	r := map[string]string{}
	for _, e := range env {
		p := strings.SplitN(e, "=", 2)

		// On Windows, environment variables can start with '='. If so, Split at next character.
		// See env_windows.go in the Go source: https://github.com/golang/go/blob/master/src/syscall/env_windows.go#L58
		prefixEqualSign := false
		if len(e) > 0 && e[0] == '=' {
			e = e[1:]
			prefixEq
    
func toMap(env []string) map[string]string {
	r := map[string]string{}
	for _, e := range env {
		p := strings.SplitN(e, "=", 2)

		// On Windows, environment variables can start with '='. If so, Split at next character.
		// See env_windows.go in the Go source: https://github.com/golang/go/blob/master/src/syscall/env_windows.go#L58
		prefixEqualSign := false
		if len(e) > 0 && e[0] == '=' {
			e = e[1:]
			prefixEqualSign = true
		}
		p = strings.SplitN(e, "=", 2)
		if prefixEqualSign {
			p[0] = "=" + p[0]
		}

		if len(p) == 2 {
			r[p[0]] = p[1]
		}
	}
	return r
}