irc

package module
v0.0.0-...-36ccf8a Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Tags
	Prefix
	Command string
	Params  []string
}

func Parse

func Parse(p []byte) (Message, int)

Parse parses an IRC message from p and returns it, along with how much of p it read.

func ParseString

func ParseString(s string) Message

ParseString converts s to a byte slice and calls Parse.

func (Message) Bytes

func (m Message) Bytes() []byte

func (Message) String

func (m Message) String() string

type Prefix

type Prefix struct {
	Name string
	User string
	Host string
}

func (Prefix) Bytes

func (p Prefix) Bytes() []byte

func (Prefix) String

func (p Prefix) String() string

type Tags

type Tags map[string]string

func (Tags) Bytes

func (t Tags) Bytes() []byte

func (Tags) String

func (t Tags) String() string

Jump to

Keyboard shortcuts

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