go-tcp-chat/command.go
2023-12-24 00:10:41 +08:00

18 lines
177 B
Go

package main
type commandId int
const (
CMD_NICK = iota
CMD_JOIN
CMD_ROOMS
CMD_MSG
CMD_QUIT
)
type command struct {
id commandId
client *client
args []string
}