internal

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package internal contains tblfmt internals.

Index

Constants

View Source
const BigEmojiSeed = 20261028

BigEmojiSeed is the seed of the big result set with emoji in the golden tests.

View Source
const BigSeed = 1549508725559526476

BigSeed is the seed of the big result set in the golden tests.

Variables

This section is empty.

Functions

This section is empty.

Types

type RS added in v0.13.0

type RS struct {
	// contains filtered or unexported fields
}

RS is a result set.

func Big added in v0.13.0

func Big(seed int64) *RS

Big creates a random, big result set using the provided seed.

func BigEmoji added in v0.19.2

func BigEmoji(seed int64) *RS

BigEmoji creates a random, big result set using the provided seed. Its text also holds emoji, and emoji clusters of more than one rune.

func Multi added in v0.13.0

func Multi() *RS

Multi creates a result set with multiple result sets.

func MultiEmoji added in v0.19.2

func MultiEmoji() *RS

MultiEmoji creates a result set with multiple result sets, and with emoji.

func New added in v0.13.0

func New(cols []string, vals ...[][]any) *RS

New creates a new result set.

func Tiny added in v0.13.0

func Tiny() *RS

Tiny creates a tiny result set.

func TinyEmoji added in v0.19.2

func TinyEmoji() *RS

TinyEmoji creates a tiny result set with an emoji column name and value.

func Wide added in v0.13.0

func Wide() *RS

Wide creates a wide result set.

func WideEmoji added in v0.19.2

func WideEmoji() *RS

WideEmoji creates a wide result set. Each column name is 30 columns wide, as the go-runewidth module measures it, and is made of emoji.

func (*RS) Close added in v0.13.0

func (*RS) Close() error

Close satisfies the ResultSet interface.

func (*RS) Columns added in v0.13.0

func (r *RS) Columns() ([]string, error)

Columns satisfies the ResultSet interface.

func (*RS) Err added in v0.13.0

func (*RS) Err() error

Err satisfies the ResultSet interface.

func (*RS) Next added in v0.13.0

func (r *RS) Next() bool

Next satisfies the ResultSet interface.

func (*RS) NextResultSet added in v0.13.0

func (r *RS) NextResultSet() bool

NextResultSet satisfies the ResultSet interface.

func (*RS) Reset added in v0.13.0

func (r *RS) Reset()

Reset resets the result set, so that it can be used again.

func (*RS) Scan added in v0.13.0

func (r *RS) Scan(vals ...any) error

Scan satisfies the ResultSet interface.

Jump to

Keyboard shortcuts

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