column

package
v0.0.0-...-8937065 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColFromIndex

func ColFromIndex(n int) string

func ColIndex

func ColIndex(s string) int

func IsValidCol

func IsValidCol(colname string) bool

Types

type Cols

type Cols []string

Cols are columns, must be in order

func (Cols) Contains

func (c Cols) Contains(col string) bool

func (Cols) First

func (c Cols) First() string

func (Cols) Last

func (c Cols) Last() string

func (Cols) Shift

func (c Cols) Shift() int

Shift is the amount of columns the first column is shifted from left Can be useful when translating column number to column name in a result set that does not start from the left most column

func (Cols) Validate

func (c Cols) Validate() error

Jump to

Keyboard shortcuts

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