Discover Packages
github.com/coolduke/fritzctl
cmd
printer
package
Version:
v1.5.1
Opens a new window with list of versions in this module.
Published: Jun 11, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package printer provides selection of output formats based on type information.
func Print(data interface{}, writer io .Writer )
Print arbitrates between printable types.
If the passed argument is of type *console.Table, we print the table.
If the passed argument is of any other type, we encode it as json.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.