Skip to content

Commit 88de94b

Browse files
committed
Update README.md
1 parent 9e31d61 commit 88de94b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Produces a string that represents slice of structs data in a text table, inspire
1313
- Cell content aligned.
1414
- Column width self-adaptation
1515
- Support type of struct field: int, float, string, bool, slice, struct, map, time.Time and everything.
16+
- Support custom table header by declaring optional tag: `table`.(Thanks @skyfireitdiy)
1617

1718
Installation
1819
------------
@@ -32,7 +33,7 @@ import (
3233
)
3334

3435
type House struct {
35-
Name string
36+
Name string `table:"Name"`
3637
Sigil string
3738
Motto string
3839
}

0 commit comments

Comments
 (0)