go-chat/common/types.go
2024-01-14 17:59:51 +00:00

26 lines
205 B
Go

package common
import "time"
type SMsg struct {
Tim time.Time
Id string
Msg string
}
type CMsgT int
const (
Sudo CMsgT = iota
Echo
Mv
Ls
Cd
Who
)
type CMsg struct {
Typ CMsgT
Msg string
}