20 lines
290 B
Go
20 lines
290 B
Go
package log
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/apcera/termtables"
|
|
)
|
|
|
|
func TestInit(t *testing.T) {
|
|
table := termtables.CreateTable()
|
|
|
|
table.AddHeaders("Name", "Age")
|
|
table.AddRow("John", "30")
|
|
table.AddRow("Sam", 18)
|
|
table.AddRow("Julie", 20.14)
|
|
|
|
fmt.Println(table.Render())
|
|
}
|