go-struct2html

command module
v0.0.0-...-fa3ecad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 2 Imported by: 0

README

struct2html

The struct2html Go package provides developers with tools to convert Go structs or slices of structs into HTML tables. It's specifically designed to create tables that are responsive and formatted for compatibility with a wide range of email clients, making it perfect for including in email reports, notifications, and any email-based communication that requires presenting data in a structured and readable format.

Features

  • Convert structs to HTML tables: Transform any struct or slice of structs into a well-formatted HTML table.
  • Email-friendly design: Generated tables are optimized for compatibility with most email clients.
  • Responsive layout: Tables adapt to different screen sizes for readability on any device.
  • Nested struct support: Handles nested structs and pointer to structs, ensuring a comprehensive representation of complex data structures.
  • Easy to use: Simple API for straightforward integration into existing Go applications.

Installation

To install struct2html, use the following go get command:

go get github.com/audi70r/go-struct2html/struct2html

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package struct2html provides a convenient way to convert Go structs or slices of structs into HTML table representations.
Package struct2html provides a convenient way to convert Go structs or slices of structs into HTML table representations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL