type GroupAdder … // NewGroupAdder wraps a request authenticator, and adds the specified groups to the returned user when authentication succeeds func NewGroupAdder(auth authenticator.Request, groups []string) authenticator.Request { … } func (g *GroupAdder) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) { … }