type numeric codes

This commit is contained in:
Jeremy Latt 2014-02-14 19:25:14 -08:00
parent 3a9027e3dc
commit 87cc184ec0
4 changed files with 150 additions and 155 deletions

View file

@ -18,12 +18,18 @@ type ModeOp rune
// user mode flags
type UserMode rune
type Phase uint
func (mode UserMode) String() string {
return fmt.Sprintf("%c", mode)
}
type Phase uint
type Numeric uint
func (code Numeric) String() string {
return fmt.Sprintf("%03d", code)
}
// channel mode flags
type ChannelMode rune