Documentation ¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListTable ¶
type ListTable struct {
// contains filtered or unexported fields
}
Example: ¶
var resultList = make([][]string, len(results)+1) resultList[0] = []string{"Title", "Content", "Author", "Created", "Updated"} for i, result := range results { var innerList = make([]string, 5) for j, v := range []string{result.Title, result.Body, result.Author.Username, result.CreatedAt().Format("2006-01-02 15:04:05"), result.UpdatedAt().Format("2006-01-02 15:04:05")} { innerList[j] = v } resultList[i+1] = innerList } return table.NewListTable("100%", resultList)
func NewListTable ¶
type NoStructAvailable ¶
type NoStructAvailable int
type Rows ¶
func GetStructFieldNames ¶
type Table ¶
type Table[T any] struct { // contains filtered or unexported fields }
func New ¶
func New(width string) *Table[NoStructAvailable]
func NewFromStruct ¶
Click to show internal directories.
Click to hide internal directories.