newqf

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ColumnOrder []string
	EnumColumns map[string][]string
}

Config holds configuration for creating new QFrames using the New constructor. It should be considered a private implementation detail and should never be referenced or used directly outside of the QFrame code. To manipulate it use the functions returning ConfigFunc below.

func NewConfig

func NewConfig(fns []ConfigFunc) *Config

NewConfig creates a new Config object. This function should never be called from outside QFrame.

type ConfigFunc

type ConfigFunc func(c *Config)

ConfigFunc is a function that operates on a Config object.

func ColumnOrder

func ColumnOrder(columns ...string) ConfigFunc

ColumnOrder provides the order in which columns are displayed, etc.

func Enums

func Enums(columns map[string][]string) ConfigFunc

Enums lists columns that should be considered enums. The map key specifies the columns name, the value if there is a fixed set of values and their internal ordering. If value is nil or empty list the values will be derived from the columns content and the ordering unspecified.

Jump to

Keyboard shortcuts

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