package main import "net/http" type respExampleHandler int //typ ist egal => interface wichtig!! func (hello respExampleHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { //Bedienung w.Header().Set("custom_header", "Beleibiger Text") w.Header().Set("Content-Type", "text/html; charset=utf-8") w.WriteHeader(http.StatusFound) w.Write([]byte("