Discover Packages
github.com/signadot/cli
internal
sdtab
package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jul 19, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types Examples Truncate(v, maxWidth) type T New(w) (t) AddHeader() (t) AddRow(r) (t) Flush() (t) SetTermSize(width, height)
Documentation
¶
func Truncate (v string , maxWidth int ) string
Output:
A B
a1 b1
aaaaaaaaaaaaaaaaaaaaaaaa... b
a bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
aaaaaaaaaaaaaaaaaaaaaaaa... bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
func New [R any ](w io.Writer) *T[R]
func (t *T[R]) AddHeader()
func (t *T[R]) AddRow(r R)
func (t *T[R]) Flush() error
func (t *T[R]) SetTermSize(width, height int )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.