Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why not has method Remove in http.ServeMux? #41376

Closed
zsy619 opened this issue Sep 14, 2020 · 1 comment
Closed

why not has method Remove in http.ServeMux? #41376

zsy619 opened this issue Sep 14, 2020 · 1 comment

Comments

@zsy619
Copy link

zsy619 commented Sep 14, 2020

What did you do?

Add or remove HttpHandler at golang runtime

What did you expect to see?

// Remove url from m, Regularization is not considered
func (mux *ServeMux) Remove(url string) {
mux.mu.Lock()
defer mux.mu.Unlock()
delete(mux.m, url)
}

What did you see instead?

@toothrot
Copy link
Contributor

A better place to ask this kind of question is golang-nuts. See https://golang.org/wiki/Questions.

@golang golang locked and limited conversation to collaborators Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants