package peer import "time" type Session struct { Conn Connection Time time.Time } func NewSession(conn Connection) *Session { s := &Session{ Conn: conn, Time: time.Now(), } return s }