I did not get the below syntax in ../go/src/net/http/server.go
:
var defaultServeMux ServeMux
where
ServeMux
is a struct
type ServeMux struct {
mu sync.RWMutex
m map[string]muxEntry
es []muxEntry
hosts bool
}
In GO, type aliasing looks like type T1 = T2
.
Is the above syntax(used for defaultServeMux
) anything to do with type aliasing?