SyntaxFix
Write A Post
Hire A Developer
Questions
Go's net/http package has many functions that deal with headers. Among them are Add, Del, Get and Set methods. The way to use Set is:
func yourHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("header_name", "header_value") }