Skip to main content

GitHub Repository

View source code and contribute

Features

  • Tested with Go 1.13+
  • High performance implementation
  • No external dependencies
  • Uses Go’s context library for cancellation

Installation

Install the library and example client:
The bztcp binary will be installed to $GOPATH/bin.

Quick Start

Test the client using the included binary:

Command Line Options

If successful, you’ll see messages similar to:

Library Usage

Core Functions

The library exposes two primary functions:

Basic Example

Advanced Usage

Context-Based Cancellation

Use Go’s context for graceful shutdown:

Processing Stream Data

The StreamData struct contains the parsed message:

Error Handling

Complete Example

Requirements

  • Go 1.13 or later (uses context library, requires Go 1.8+)
  • Network access to tcp-v1.benzinga.io:11337

See Also