table2d

package
v0.0.0-...-2d29fd2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AnnoTemplate   = &AnnoCol[int]{}
	AnnoTableCache annoparse.AnnoTable[*AnnoCol[int]]
)

Functions

func ParseByCol

func ParseByCol(outSlicePointer any, reader tablety.LineReader[string], option ...ParseOption) error

ParseByCol read all line from LineReader, and insert all items to outSlicePointer

func ParseLineByCol

func ParseLineByCol(out any, line []string, option ...ParseOption) (err error)

Types

type AnnoCol

type AnnoCol[TCol ~int] struct {
	Col    TCol
	Parser string
	Param  string
}

func (AnnoCol[TCol]) TagName

func (AnnoCol[TCol]) TagName() string

type ParseOption

type ParseOption struct {
	Tag   string
	Parse func(string) (any, error)
}

Directories

Path Synopsis
genpreset
col reader of TheTestClass, generated by github.com/khicago/got/table2d/preset/cmd
col reader of TheTestClass, generated by github.com/khicago/got/table2d/preset/cmd

Jump to

Keyboard shortcuts

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