render

package
v0.0.0-...-217a001 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidColumns = map[ColumnKey]struct{}{
	ColumnArch:       {},
	ColumnNR:         {},
	ColumnName:       {},
	ColumnReturn:     {},
	ColumnReferences: {},
	ColumnArg0:       {},
	ColumnArg1:       {},
	ColumnArg2:       {},
	ColumnArg3:       {},
	ColumnArg4:       {},
	ColumnArg5:       {},
}

Functions

func OutputWithPager

func OutputWithPager(output string, format string, noPager bool) error

func RenderJSONRecord

func RenderJSONRecord(record model.SyscallRecord) (string, error)

func RenderJSONRecords

func RenderJSONRecords(records []model.SyscallRecord) (string, error)

func RenderTable

func RenderTable(records []model.SyscallRecord, columns []ColumnKey, width int) string

func UsePager

func UsePager(output string, format string, noPager bool) bool

Types

type ColumnKey

type ColumnKey string
const (
	ColumnArch       ColumnKey = "arch"
	ColumnNR         ColumnKey = "nr"
	ColumnName       ColumnKey = "name"
	ColumnReturn     ColumnKey = "return"
	ColumnReferences ColumnKey = "references"
	ColumnArg0       ColumnKey = "arg0"
	ColumnArg1       ColumnKey = "arg1"
	ColumnArg2       ColumnKey = "arg2"
	ColumnArg3       ColumnKey = "arg3"
	ColumnArg4       ColumnKey = "arg4"
	ColumnArg5       ColumnKey = "arg5"
)

func ParseColumns

func ParseColumns(input string) ([]ColumnKey, error)

Jump to

Keyboard shortcuts

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