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: server.go
    path of file: ./repos/kubeedge/edge/cmd/edgecore/app
    
    the code of the file until where you have to start completion: package app

import (
	"errors"
	"fmt"
	"os"

	ps "github.com/shirou/gopsutil/
    
func environmentCheck(skipCheck bool) error {
	if skipCheck {
		return nil
	}
	processes, err := ps.Processes()
	if err != nil {
		return err
	}

	for _, process := range processes {
		processName, err := process.Name()
		if err != nil {
			// err usually cant be fixed by user, so just skip it instead of return error (we only check named process)
			continue
		}
		switch processName {
		case "kubelet": // if kubelet is running, return error
			return errors.New("kubelet should not running on edge node when running edgecore")
		case "kube-proxy": // if kube-proxy is running, return error
			return errors.New("kube-proxy should not running on edge node when running edgecore")
		}
	}

	return nil
}