Skip to content

Instantly share code, notes, and snippets.

@fntlnz
fntlnz / README.md
Last active June 1, 2021 02:33
InfluxData Flux as a library

Flux as a Library Example

Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.

This gist contains a main.go file that shows how flux can be used as a library in your programs.

Components

The main components you need are: