modulepackage
1.4.0
Repository: https://github.com/arjenschwarz/go-output.git
Documentation: pkg.go.dev
# README
go-output
A module used by me to manage outputs in various CLI tools. This uses a mix of external packages and ones I've written. Feel free to use it, but if you only need part of the functionality you might be better of using those modules directly. Functionality and any external tools it uses are documented below.
Output types
This supports various output types:
json
yaml
csv
html
table
markdown
dot
mermaid
draw.io/diagram.net
Usage
Development
# Functions
NewOutputSettings creates and returns a new OutputSettings object with some default values.
PrintByteSlice prints the provided contents to stdout or the provided filepath.
# Variables
TableStyles is a lookup map for getting the table styles based on a string.
# Structs
FromToColumns is used to set the From and To columns for graphical output formats.
OutputArray holds all the different OutputHolders that will be provided as output, as well as the keys (headers) that will actually need to be printed.
OutputHolder holds key-value pairs that belong together in the output.
No description provided by the author
No description provided by the author