Describe how you apply object-oriented design principles in Go and how you implement a REST API.
For the hands-on portion, implement the equivalent resource handler below. Support GET, POST, PUT, and DELETE for /items and /items/{id}, while separating routing, validation, and resource operations. Return a response object containing an HTTP-style status code and JSON-compatible body.
process_request(items, method, path, body) receives a list of item objects and returns {"status": integer, "body": value}. Each item has an integer id and string name.
def process_request(items, method, path, body):