line

package
v0.0.0-...-f77af5b Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2018 License: BSD-3-Clause Imports: 3 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLineShort     = errors.New("line too short")
	ErrLineMalformed = errors.New("malformed line")
)

Custom error

Functions

This section is empty.

Types

type Line

type Line struct {
	ChatBotId int
	Raw       string
	Received  string
	User      string
	Host      string
	Command   string
	Args      []string
	Content   string
	IsCTCP    bool
	Channel   string
	BotNick   string
}

Line represent an IRC line

func NewFromJSON

func NewFromJSON(b []byte) (*Line, error)

NewFromJSON returns a pointer to line

func (*Line) JSON

func (l *Line) JSON() []byte

JSON returns a JSON []byte

func (*Line) String

func (l *Line) String() string

String returns a JSON string

Jump to

Keyboard shortcuts

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