r1459

package
v0.0.0-...-dd27f12 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2015 License: Zlib Imports: 2 Imported by: 2

README

r1459

-- import "github.com/Xe/Tetra/1459"

Package r1459 implements a base structure to scrape out and utilize an RFC 1459 frame in high level Go code.

Usage

type RawLine
type RawLine struct {
	Source string            `json: "source"`
	Verb   string            `json:"verb"`
	Args   []string          `json:"args"`
	Tags   map[string]string `json:"tags"`
	Raw    string            `json:"-"` // Deprecated
}

IRC line

func NewRawLine
func NewRawLine(input string) (line *RawLine)

Create a new line and split out an RFC 1459 frame to a RawLine. This will not return an error if it fails. TODO: fix this.

func (*RawLine) String
func (r *RawLine) String() (res string)

String returns the serialized form of a RawLine as an RFC 1459 frame.

Documentation

Overview

Package r1459 implements a base structure to scrape out and utilize an RFC 1459 frame in high level Go code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawLine

type RawLine struct {
	Source string            `json:"source"`
	Verb   string            `json:"verb"`
	Args   []string          `json:"args"`
	Tags   map[string]string `json:"tags"`
	Raw    string            `json:"-"` // Deprecated
}

RawLine represents an IRC line.

func NewRawLine

func NewRawLine(input string) (line *RawLine)

NewRawLine creates a new line and split out an RFC 1459 frame to a RawLine. This will not return an error if it fails.

func (*RawLine) String

func (r *RawLine) String() (res string)

String returns the serialized form of a RawLine as an RFC 1459 frame.

Jump to

Keyboard shortcuts

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