slice2table

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTable

func NewTable[T any](objects []*T) string

NewTable 将结构体指针切片转换为 HTML 表格,支持自定义标签名

func NewTableWithOptions

func NewTableWithOptions[T any](objects []*T, options *Options) string

Types

type Options

type Options struct {
	TagName string
}

func NewOptions

func NewOptions() *Options

func (*Options) WithTagName

func (opts *Options) WithTagName(tagName string) *Options

Jump to

Keyboard shortcuts

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