package web type Channel struct { ID int Name string Topic string Clients map[int]*Client } func NewChannel(id int, name string, topic string) *Channel { c := Channel{ID: id, Name: name, Topic: topic, Clients: make(map[int]*Client)} return &c }