column

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 1 Imported by: 4

Documentation

Overview

Package column provides column functionality to cover API response data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Length int
	// contains filtered or unexported fields
}

Column is a struct representing column covering API response data.

func NewColumn

func NewColumn(key string, data []string) *Column

NewColumn represents the constructor for struct Column.

func (*Column) GetData

func (c *Column) GetData() []string

GetData method to return the column data

func (*Column) GetDataByIndex

func (c *Column) GetDataByIndex(idx int) (string, error)

GetDataByIndex method to return the column data at the provided index

func (*Column) GetKey

func (c *Column) GetKey() string

GetKey method to return the column name

Jump to

Keyboard shortcuts

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