ctcp

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ctcp implements helpers for IRC Client-To-Client messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCTCP

func IsCTCP(s string) bool

IsCTCP returns whether or not the given string is a valid CTCP command

Types

type CTCP

type CTCP struct {
	Command string
	Arg     string
}

CTCP represents a CTCP command and argument

func Parse

func Parse(s string) (CTCP, error)

Parse takes a string and returns a CTCP struct representation of the command. If the passed string is not a valid CTCP string, Parse returns an error

Jump to

Keyboard shortcuts

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