Examples
March 2, 2026 ยท View on GitHub
- Write and query data - A complete Go example that demonstrates the different ways of writing data, and then queries your data stored in InfluxDB v3.
- Control first-write tag column order - A focused example showing
WithTagOrder(...)to prioritize tag order on the first write. - Downsampling - A complete Go example that uses a downsampling query and then writes downsampled data back to a different table.
- HTTP Error Handling - A complete Go example for reading HTTP headers in case of an server error occurs.
- Batching write - A complete Go example that demonstrates how to write Point data in batches.
- Line protocol batching write - A complete GO example demonstrating how to write line protocol data in batches.