Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.13 KB

File metadata and controls

46 lines (32 loc) · 1.13 KB

libnf-go

Go bindings for the libnf C library — enabling parsing of NetFlow data in Go applications.

Features

  • Go Bindings for libnf: Provides Go language bindings to the libnf C library.
  • NetFlow Data Parsing: Enables parsing and processing of NetFlow data within Go programs.

Prerequisites

Before using this Go module, ensure that the following are installed on your Linux-based operating system:

Installation

To install the package, run:

go install github.com/matejnesuta/libnf-go@latest
go get github.com/matejnesuta/libnf-go

Demo examples

In order to run these, clone the repository and run:

go run main.go <example-name> [--profile]

Results of the profiler can be viewed like this:

go tool pprof -http=:6061 .prof/cpu.prof

This package uses a Godoc for documentation. In order to generate it, run this command:

godoc -http=:6060

This repository contains various automated tests. To run them from the root, use this:

go test ./...