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: rosetta_darwin.go
    path of file: ./repos/delve/pkg/proc/macutil
    
    the code of the file until where you have to start completion: package macutil

import (
	"errors"
	"syscall"
)

// CheckRosetta returns an error if the calling 
    
func CheckRosetta() error {
	pt, err := syscall.Sysctl("sysctl.proc_translated")
	if err != nil {
		return nil
	}
	if len(pt) > 0 && pt[0] == 1 {
		return errors.New("can not run under Rosetta, check that the installed build of Go is right for your CPU architecture")
	}
	return nil
}