Im attempting to set a default header in my Golang web api. I am using the net/http router that comes with Go. I can find many examples of how to do this :
- Using some other routers.
- Doing it for every response ( I am already doing it )
Is it there a way in which I can set a default header for all responses using net/http?