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: inspect.go
    path of file: ./repos/ziti/controller/handler_mgmt
    
    the code of the file until where you have to start completion: /*
	Copyright NetFoundry Inc.

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

	https://www.apache.org
    
func (handler *inspectHandler) HandleReceive(msg *channel.Message, ch channel.Channel) {
	response := &mgmt_pb.InspectResponse{}
	request := &mgmt_pb.InspectRequest{}
	if err := proto.Unmarshal(msg.Body, request); err != nil {
		response.Success = false
		response.Errors = append(response.Errors, fmt.Sprintf("%v: %v", handler.network.GetAppId(), err))
	} else {
		result := handler.network.Managers.Inspections.Inspect(request.AppRegex, request.RequestedValues)
		response.Success = result.Success
		response.Errors = result.Errors
		for _, val := range result.Results {
			response.Values = append(response.Values, &mgmt_pb.InspectResponse_InspectValue{
				AppId: val.AppId,
				Name:  val.Name,
				Value: val.Value,
			})
		}
	}

	body, err := proto.Marshal(response)
	if err != nil {
		pfxlog.Logger().Errorf("unexpected error serializing InspectResponse (%s)", err)
		return
	}

	responseMsg := channel.NewMessage(int32(mgmt_pb.ContentType_InspectResponseType), body)
	responseMsg.ReplyTo(msg)
	if err = ch.Send(responseMsg); err != nil {
		pfxlog.Logger().Errorf("unexpected error sending InspectResponse (%s)", err)
	}
}