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.
The main components you need are: