Categorygithub.com/domonda/go-structtable
modulepackage
0.0.0-20240302080633-ebdd804b0a01
Repository: https://github.com/domonda/go-structtable.git
Documentation: pkg.go.dev

# README

go-structtable

Read and write data-table formats as slices of Go structs

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
NoColumnTitles returns a ColumnMapper that returns nil as column titles and the StructFieldValues function of this package as RowReflector.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SpacePascalCase inserts spaces before upper case characters within PascalCase like names.
StructFieldTypes returns the exported fields of a struct type including the inlined fields of any anonymously embedded structs.
StructFieldValues returns the reflect.Value of exported struct fields including the inlined fields of any anonymously embedded structs.

# Variables

DefaultReflectColumnTitles provides the default ReflectColumnTitles using "col" as Tag and the SpacePascalCase function for UntaggedFieldTitle.

# Structs

HTMLRenderer implements Renderer by using a HTMLFormatRenderer for a specific text based table format.
HTMLTableConfig is the config for the actual, visual, resulting HTML table.
ReflectColumnTitles implements ColumnMapper with a struct field Tag to be used for naming and a UntaggedFieldTitle in case the Tag is not set.
No description provided by the author
TextRenderer implements Renderer by using a TextFormatRenderer for a specific text based table format.

# Interfaces

ColumnMapper is used to map struct type fields to column names.
HTMLFormatRenderer is the renderer for the HTML format.
No description provided by the author
No description provided by the author
RowReflector is used to reflect column values from the fields of a struct representing a table row.
TextFormatRenderer has to be formatemented for a format to be used by TextRenderer.

# Type aliases

ColumnMapperFunc implements the ColumnMapper interface with a function.
ColumnTitles implements ColumnMapper by returning the underlying string slice as column titles and the StructFieldValues function of this package as RowReflector.
RowReflectorFunc implements RowReflector with a function.