Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 2.21 KB

README.md

File metadata and controls

81 lines (54 loc) · 2.21 KB

mintab

CI codecov Go Reference Go Report Card

mintab is a minimum ASCII table utilities for golang

Motivation

While tablewriter is useful, I wanted a smaller package with features such as backlog format support that tablewriter does not have.

Format

Text

text

Text merged

text_merged

Compressed-text merged

text_compressed

Markdown merged

markdown

Backlog merged

backlog

Support

  • Support markdown table format
  • Support backlog table format
  • Support multiple lines in a row
  • Support direct loading of struct slices
  • Support for column merging based on previous field values
  • Support for column exclusion
  • Support for HTML special character escapes (designed primarily for markdown)
  • Support for string concatenation when the field is a slice of the primitive type values
  • Support automatic string conversion of byte slices

Notes

  • Nested structs are not supported
  • Using reflect

Usage

Example

Todo

  • Add paging for large inputs
  • Add minimal styling
  • Add caption
  • Add escape sequence support
  • Add word wrapping with new line
  • Improve performance and reduce memory allocations

Author

nekrassov01

License

MIT