mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
convert composite literals from { } to ( ).
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
This commit is contained in:
parent
07244f7c80
commit
9f8f2e6130
92 changed files with 1598 additions and 1600 deletions
|
|
@ -247,7 +247,7 @@ func (h *redirectHandler) ServeHTTP(c *Conn, req *Request) {
|
|||
}
|
||||
|
||||
func RedirectHandler(to string) Handler {
|
||||
return &redirectHandler{to};
|
||||
return &redirectHandler(to);
|
||||
}
|
||||
|
||||
// Path-based HTTP request multiplexer.
|
||||
|
|
@ -265,7 +265,7 @@ type ServeMux struct {
|
|||
}
|
||||
|
||||
func NewServeMux() *ServeMux {
|
||||
return &ServeMux{make(map[string] Handler)};
|
||||
return &ServeMux(make(map[string] Handler));
|
||||
}
|
||||
|
||||
var DefaultServeMux = NewServeMux();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue