message

package
v0.0.0-...-2ab1e11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2015 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Params

func Params(args []string) *params

func ParamsT

func ParamsT(args []string, trailing string) *params

func Prefix

func Prefix(args ...string) *prefix

Types

type M

type M struct {
	Prefix  *prefix
	Command string
	Params  *params
}

message = [ ":" prefix SPACE ] command [ params ] crlf

func Message3

func Message3(Prefix *prefix, command string, prms *params) M

func Parse

func Parse(line string) M

func (M) Args

func (m M) Args() []string

func (M) Parts

func (m M) Parts() []M

func (M) String

func (m M) String() string

type Sender

type Sender interface {
	Name() string
	Send(M)
	SendExcept(M, string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL