MCPcopy Create free account
hub / github.com/deepflowio/deepflow / ExampleShort

Function ExampleShort

cli/ctl/common/table/table_test.go:26–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func ExampleShort() {
27 data := [][]string{
28 {"A", "16"},
29 {"B", "17"},
30 {"C", "18"},
31 }
32 table := New()
33 resetOSWriter(table)
34 table.SetHeader([]string{"Name", "Age"})
35 table.AppendBulk(data)
36 table.Render()
37
38 // Output:
39 // Name Age
40 // A 16
41 // B 17
42 // C 18
43}
44
45func ExampleChinese() {
46 data := [][]string{

Callers

nothing calls this directly

Calls 5

resetOSWriterFunction · 0.85
SetHeaderMethod · 0.80
AppendBulkMethod · 0.80
RenderMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected