func Unauthorized(w http.ResponseWriter, realm string) {
	w.Header().Set("Www-Authenticate", fmt.Sprintf(`Basic realm="%s"`, realm))
	w.WriteHeader(http.StatusUnauthorized)
	w.Write([]byte("Unauthorized"))
}
Writes an unauthorized response to the client, specifying the expected authentication
information.
package handlers
import (
	"bytes"
	"encoding/base64"
	"fmt"
	"net/http"
	"strings"
)
type userResponseWriter struct {
	http.ResponseWriter
	user     interface{}
	userName string
}
func (this *userResponseWriter) WrappedWriter() http.ResponseWriter {
	return this.ResponseWriter
}