forked from External/ergo
type numeric codes
This commit is contained in:
parent
3a9027e3dc
commit
87cc184ec0
4 changed files with 150 additions and 155 deletions
10
irc/types.go
10
irc/types.go
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue