Help us shape the future of Go! Take the 2026 Go Developer Survey

frames

package
v0.35.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package frames reads and builds protocol frames: columnar, typed rows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Column

func Column(f *protocol.Frame, name string) []any

Column is the values of the named field, or nil.

func Format

func Format(fl protocol.Field, v any) string

Format writes one value for display, by its field's type and unit.

func FromRows

func FromRows(fields []protocol.Field, rows []map[string]any) *protocol.Frame

func Len

func Len(f *protocol.Frame) int

func Row

func Row(f *protocol.Frame, i int) map[string]any

func RowRef

func RowRef(f *protocol.Frame, i int) string

RowRef is row i's ref from the first field with a ref template, or "".

func Rows

func Rows(f *protocol.Frame) []map[string]any

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL