package main import ( "time" "github.com/coder/websocket" ) type User struct { MemberGroupsId []uint64 Name string Password string Color [3]byte Id uint64 IsPasswordHashed bool } type Client struct { conn *websocket.Conn User *User } type ChatGroup struct { Members []User CreatedAt time.Time Name string Id uint64 CreatorId uint64 OwnerId uint64 Color [3]byte EnableUserColors bool }