Versions in this module Expand all Collapse all v0 v0.2.1 Dec 29, 2017 v0.2.0 Dec 29, 2017 Changes in this version type Socket + func MakeSocket(conn net.Conn) *Socket v0.1.0 Dec 26, 2017 Changes in this version + const SemVer + var ErrorDisconnected = errors.New("Socket is disconnected") + func AnsiFormatLineParts(lineParts []string, outputItalics bool) string + func SplitLineIntoParts(line string) []string + type Connection struct + func NewConnection(config ConnectionConfig) (*Connection, error) + func (conn *Connection) Disconnect() + func (conn *Connection) GetLine() (string, error) + func (conn *Connection) SendLine(line string) error + func (conn *Connection) SendMessage(print bool, tags *map[string]ircmsg.TagValue, prefix string, command string, ...) error + type ConnectionConfig struct + Host string + Port int + TLS bool + TLSConfig *tls.Config + type Socket struct + func ConnectSocket(host string, port int, useTLS bool, tlsConfig *tls.Config) (*Socket, error) + func (s *Socket) Connected() bool + func (s *Socket) Disconnect() + func (s *Socket) GetLine() (string, error) + func (s *Socket) SendLine(line string) error