Wrapper for pure GET without any parameters

Author: suntongCreated Oct 15, 2023Updated Oct 15, 2023

How should I write a Handler wrapper for pure GET operation that has no any parameters?

All Handler wrappers seems to need to wrap onto something, of what the user is requesting:

https://github.com/ThreeDotsLabs/wild-workouts-go-ddd-example/blob/56ef6d5daa2e1f2de82f85278eef1fe5825eb401/internal/trainings/app/command/schedule_training.go#L24

Then passes on such user requests to the Handler in the end.

However, for a pure GET operation that has no any parameters, like /health that I need to return CPU & Mem info, how should I write a Handler wrapper for it please?

Source: ThreeDotsLabs/wild-workouts-go-ddd-example