reports

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT = iota + 1

	// Number format
	NUMBER
	INDEX
	PERCENT

	EMPTY

	// Text position
	LEFT
	RIGHT
	CENTER
)

Used by style

Variables

This section is empty.

Functions

func ListCompanies

func ListCompanies(db *sql.DB) (names []string, err error)

ListCompanies shows all available companies

func ListCompaniesProfits added in v0.9.0

func ListCompaniesProfits(db *sql.DB, rate float32) error

ListCompaniesProfits lists companies by net profit: more sustainable growth listed first

func ListSector added in v0.8.1

func ListSector(db *sql.DB, company, yamlFile string) (err error)

ListSector shows all companies from the same sector as 'company'

func Report

func Report(db *sql.DB, _company string, filename, yamlFile string) (err error)

Report of company data from DB to Excel

Types

type CompanyInfo added in v0.9.0

type CompanyInfo struct {
	// contains filtered or unexported fields
}

CompanyInfo contains the company name and CNPJ

type Excel

type Excel struct {
	// contains filtered or unexported fields
}

Excel instance reachable data

type Sheet

type Sheet struct {
	// contains filtered or unexported fields
}

Sheet struct

Jump to

Keyboard shortcuts

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