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 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

@toothrot toothrot commented Sep 15, 2020

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

@toothrot toothrot closed this Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.