go-chat/common/types.go

26 lines
205 B
Go
Raw Normal View History

2024-01-14 17:59:51 +00:00
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
}