keireport

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 4 Imported by: 1

README

KeiReport

Golang based reporting engine. Generating PDF, HTML, Docx and more using simple template. Getting data from database, csv and more

Features

  • JSON based template
  • Simple band system : title - header - detail - footer
  • Datasource : DB, CSV
  • Label, Rect, Image
  • Parameterized value in text, image
  • Custom font embedding
  • Generate to PDF, HTML

View our roadmap for upcoming feature

Installation

To install the package to your system, run :

go get github.com/kodernubie/keireport

Quick Start

Following code load report template from file and generate to pdf

import "github.com/kodernubie/keireport"

...

rpt, err := keireport.LoadFromFile("simple.krpt")

if err == nil {

    rpt.GenToFile("simple.pdf")
}

For more usage examples you can check "example" directory

License

kodernubie/keireport is released under the MIT License.

Roadmap

  • Generate to DocX
  • Specialized template for spreadsheet
  • Barcode, QR code

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFile

func LoadFromFile(fileName string) (*core.Keireport, error)

func LoadFromString added in v0.1.2

func LoadFromString(templateString, baseDir string) (*core.Keireport, error)

Types

This section is empty.

Directories

Path Synopsis
pdf

Jump to

Keyboard shortcuts

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