SYMBOL INDEX (407 symbols across 57 files) FILE: cmd/rapina/cmdutils.go constant dataDir (line 15) | dataDir = ".data" constant yamlFile (line 16) | yamlFile = "./setores.yml" type Parms (line 19) | type Parms struct function openDatabase (line 37) | func openDatabase() (db *sql.DB, err error) { function promptUser (line 54) | func promptUser(list []string, label string) (result string) { function filename (line 82) | func filename(path, name string) (fpath string, err error) { FILE: cmd/rapina/cmdutils_test.go function TestFilename (line 9) | func TestFilename(t *testing.T) { FILE: cmd/rapina/fii.go type fiiFlags (line 15) | type fiiFlags struct function init (line 34) | func init() { FILE: cmd/rapina/fii_dividends.go type fiiDividendsFlags (line 19) | type fiiDividendsFlags struct function init (line 55) | func init() { function FIIDividends (line 63) | func FIIDividends(parms map[string]string, codes []string, n int) error { FILE: cmd/rapina/fii_monthly.go type fiiMonthlyFlags (line 16) | type fiiMonthlyFlags struct function init (line 47) | func init() { function FIIMonthly (line 55) | func FIIMonthly(parms map[string]string, codes []string, n int) error { FILE: cmd/rapina/flags.go constant Fverbose (line 6) | Fverbose = "verbose" constant Fnum (line 9) | Fnum = "num" constant Fformat (line 12) | Fformat = "format" FILE: cmd/rapina/list.go function init (line 37) | func init() { function ListCompanies (line 75) | func ListCompanies() (err error) { function ListSector (line 95) | func ListSector(company, yamlFile string) (err error) { function ListCompaniesProfits (line 112) | func ListCompaniesProfits(rate float32) (err error) { FILE: cmd/rapina/main.go function Execute (line 58) | func Execute() int { function init (line 66) | func init() { function initConfig (line 106) | func initConfig() { function main (line 137) | func main() { FILE: cmd/rapina/report.go function init (line 55) | func init() { function report (line 68) | func report(company string) { function SelectCompany (line 113) | func SelectCompany(company string, scriptMode bool) string { function Report (line 171) | func Report(p Parms) (err error) { FILE: cmd/rapina/server.go type serverFlags (line 15) | type serverFlags struct function init (line 37) | func init() { function serve (line 43) | func serve(parms map[string]string) error { FILE: cmd/rapina/update.go function init (line 83) | func init() { FILE: common.go function IsDate (line 13) | func IsDate(date string) bool { function IsURL (line 40) | func IsURL(str string) bool { function JoinURL (line 46) | func JoinURL(base string, paths ...string) string { function MonthsFromToday (line 55) | func MonthsFromToday(n int) []string { function LastBusinessDayOfYear (line 78) | func LastBusinessDayOfYear(year int) string { function LastBusinessDay (line 98) | func LastBusinessDay(n int) string { FILE: common_test.go function TestIsDate (line 9) | func TestIsDate(t *testing.T) { function TestIsUrl (line 53) | func TestIsUrl(t *testing.T) { function TestMonthsFromToday (line 82) | func TestMonthsFromToday(t *testing.T) { function TestLastBusinessDayOfYear (line 122) | func TestLastBusinessDayOfYear(t *testing.T) { FILE: fetch/fetch.go function CVM (line 51) | func CVM(db *sql.DB, dataDir string) error { type fn (line 60) | type fn function try (line 63) | func try(f fn, db *sql.DB, dataDir, errMsg string, now, limit, n int) { function processAnnualReport (line 85) | func processAnnualReport(db *sql.DB, dataDir string, year int) error { function processQuarterlyReport (line 121) | func processQuarterlyReport(db *sql.DB, dataDir string, year int) error { function processFREReport (line 159) | func processFREReport(db *sql.DB, dataDir string, year int) error { function fetchFiles (line 194) | func fetchFiles(url, dataDir string, zipfile string) ([]string, error) { function fetchFilesVerbosity (line 201) | func fetchFilesVerbosity(url, dataDir string, zipfile string, verbose bo... type WriteCounter (line 224) | type WriteCounter struct method Write (line 229) | func (wc *WriteCounter) Write(p []byte) (int, error) { method printProgress (line 236) | func (wc WriteCounter) printProgress() { function downloadFile (line 243) | func downloadFile(url, filepath string, verbose bool) (err error) { function Sectors (line 295) | func Sectors(yamlFile string) (err error) { function filesCleanup (line 304) | func filesCleanup(files []string) { function findFile (line 316) | func findFile(list []string, pattern string) (string, error) { FILE: fetch/fetch_fii.go constant MAX_N (line 33) | MAX_N = 100 type FII (line 36) | type FII struct method Dividends (line 69) | func (fii FII) Dividends(code string, n int) (*[]rapina.Dividend, erro... method dividendsFromDB (line 93) | func (fii FII) dividendsFromDB(code string, n int) (*[]rapina.Dividend... method dividendsFromServer (line 119) | func (fii *FII) dividendsFromServer(code string, n int) (*[]rapina.Div... method dividendReport (line 141) | func (fii *FII) dividendReport(code string, ids []id) (*[]rapina.Divid... method MonthlyReportIDs (line 275) | func (fii *FII) MonthlyReportIDs(code string, n int) ([]id, error) { method monthlyReport (line 289) | func (fii *FII) monthlyReport(code string, ids []id) (*[]rapina.Monthl... method Details (line 350) | func (fii *FII) Details(fiiCode string) (*rapina.FIIDetails, error) { method reportIDs (line 408) | func (fii *FII) reportIDs(rt repType, code string, n int) ([]id, error) { function NewFII (line 41) | func NewFII(db *sql.DB, log rapina.Logger) (*FII, error) { type id (line 53) | type id type Report (line 57) | type Report struct type docID (line 60) | type docID struct function parseData (line 215) | func parseData(data []string) (rapina.Dividend, bool) { function comma2dot (line 245) | func comma2dot(val string) float64 { function fixDate (line 253) | func fixDate(date string) string { function getTextContent (line 261) | func getTextContent(n *html.Node) string { type repType (line 401) | type repType constant repMonthly (line 404) | repMonthly repType = iota + 1 constant repDividends (line 405) | repDividends function minmax (line 470) | func minmax(n, min, max int) int { FILE: fetch/fetch_fii_test.go function Test_comma2dot (line 7) | func Test_comma2dot(t *testing.T) { function Test_FixDate (line 36) | func Test_FixDate(t *testing.T) { FILE: fetch/fetch_http.go constant _http_timeout (line 13) | _http_timeout = 30 * time.Second type HTTPFetch (line 16) | type HTTPFetch struct method JSON (line 27) | func (h HTTPFetch) JSON(url string, target interface{}) error { function NewHTTP (line 21) | func NewHTTP() *HTTPFetch { function getJSON (line 41) | func getJSON(url string, target interface{}) error { FILE: fetch/fetch_http_test.go function init (line 13) | func init() { function jsonsMock (line 20) | func jsonsMock(w http.ResponseWriter, r *http.Request) { type jsonData (line 24) | type jsonData struct function TestHTTPFetch_JSON (line 28) | func TestHTTPFetch_JSON(t *testing.T) { FILE: fetch/fetch_stock.go constant APInone (line 23) | APInone = iota constant APIalphavantage (line 24) | APIalphavantage constant APIyahoo (line 25) | APIyahoo type Stock (line 29) | type Stock struct method Quote (line 57) | func (s *Stock) Quote(code, date string) (float64, error) { method stockQuoteFromB3 (line 109) | func (s *Stock) stockQuoteFromB3(date string) error { method stockQuoteFromAPIServer (line 149) | func (s *Stock) stockQuoteFromAPIServer(code, date string, apiProvider... method Code (line 198) | func (s *Stock) Code(companyName, stockType string) (string, error) { method UpdateStockCodes (line 223) | func (s *Stock) UpdateStockCodes() error { function NewStock (line 40) | func NewStock(db *sql.DB, log rapina.Logger, apiKey, dataDir string) (*S... type b3CodesFile (line 210) | type b3CodesFile struct function apiURL (line 269) | func apiURL(provider int, apiKey, code, date string) string { function map2str (line 299) | func map2str(data map[string]interface{}) string { function ifNot (line 308) | func ifNot(err error) bool { FILE: fetch/fetch_test.go function Test_findFile (line 9) | func Test_findFile(t *testing.T) { FILE: fetch/unzip.go function Unzip (line 17) | func Unzip(src string, dest string, verbose bool) ([]string, error) { function valid (line 90) | func valid(filename string) bool { FILE: fii.go type Dividend (line 4) | type Dividend struct type Monthly (line 12) | type Monthly struct type FIIDetails (line 16) | type FIIDetails struct type FIIStorage (line 55) | type FIIStorage interface FILE: logger.go type Logger (line 6) | type Logger interface FILE: parsers/codeaccounts.go constant UNDEF (line 11) | UNDEF uint32 = iota constant SPACE (line 12) | SPACE constant Caixa (line 15) | Caixa constant AplicFinanceiras (line 16) | AplicFinanceiras constant Estoque (line 17) | Estoque constant Equity (line 18) | Equity constant ContasARecebCirc (line 19) | ContasARecebCirc constant ContasARecebNCirc (line 20) | ContasARecebNCirc constant AtivoCirc (line 21) | AtivoCirc constant AtivoNCirc (line 22) | AtivoNCirc constant AtivoTotal (line 23) | AtivoTotal constant PassivoCirc (line 24) | PassivoCirc constant PassivoNCirc (line 25) | PassivoNCirc constant PassivoTotal (line 26) | PassivoTotal constant DividaCirc (line 27) | DividaCirc constant DividaNCirc (line 28) | DividaNCirc constant DividendosJCP (line 29) | DividendosJCP constant DividendosMin (line 30) | DividendosMin constant Vendas (line 33) | Vendas constant CustoVendas (line 34) | CustoVendas constant DespesasOp (line 35) | DespesasOp constant EBIT (line 36) | EBIT constant ResulFinanc (line 37) | ResulFinanc constant ResulOpDescont (line 38) | ResulOpDescont constant LucLiq (line 39) | LucLiq constant FCO (line 42) | FCO constant FCI (line 43) | FCI constant FCF (line 44) | FCF constant Deprec (line 47) | Deprec constant JurosCapProp (line 48) | JurosCapProp constant Dividendos (line 49) | Dividendos constant Shares (line 52) | Shares constant FreeFloat (line 53) | FreeFloat constant EstoqueMedio (line 56) | EstoqueMedio constant EquityAvg (line 57) | EquityAvg constant Escala (line 60) | Escala constant Quote (line 63) | Quote type account (line 67) | type account struct function acctCode (line 123) | func acctCode(cdAccount, dsAccount string) uint32 { FILE: parsers/companies.go type company (line 9) | type company struct function loadCompanies (line 14) | func loadCompanies(db *sql.DB) (map[string]company, error) { function saveCompanies (line 38) | func saveCompanies(db *sql.DB, companies map[string]company) error { function updateCompanies (line 59) | func updateCompanies(companies map[string]company, cnpj, name string) { FILE: parsers/fiidb.go type FIIParser (line 22) | type FIIParser struct method SaveDetails (line 39) | func (fii *FIIParser) SaveDetails(stream []byte) error { method Details (line 72) | func (fii *FIIParser) Details(code string) (*rapina.FIIDetails, error) { method Dividends (line 104) | func (fii *FIIParser) Dividends(code, monthYear string) (*[]rapina.Div... method SaveDividend (line 150) | func (fii *FIIParser) SaveDividend(dividend rapina.Dividend) error { method SelectFIIDetails (line 165) | func (fii *FIIParser) SelectFIIDetails(code string) (*rapina.FIIDetail... function NewFII (line 29) | func NewFII(db *sql.DB, log rapina.Logger) (*FIIParser, error) { function trimFIIDetails (line 196) | func trimFIIDetails(f *rapina.FIIDetails) { FILE: parsers/financial.go function ImportCsv (line 28) | func ImportCsv(db *sql.DB, dataType string, file string) (err error) { function populateTable (line 84) | func populateTable(db *sql.DB, dataType, file string) (int, error) { function prepareFields (line 226) | func prepareFields(dataType string, header map[string]int, fields []stri... FILE: parsers/financial_test.go function tempFilename (line 11) | func tempFilename(t *testing.T) string { function samples (line 20) | func samples(filename string) error { function TestImportCsv (line 39) | func TestImportCsv(t *testing.T) { function TestGetHash (line 73) | func TestGetHash(t *testing.T) { function TestRemoveDiacritics (line 91) | func TestRemoveDiacritics(t *testing.T) { function Test_prepareFields (line 109) | func Test_prepareFields(t *testing.T) { function BenchmarkPrepareFields (line 200) | func BenchmarkPrepareFields(b *testing.B) { FILE: parsers/fre.go function populateFRE (line 21) | func populateFRE(db *sql.DB, file string) (int, error) { function prepareFREFields (line 133) | func prepareFREFields(header map[string]int, fields []string, companies ... FILE: parsers/fuzzy.go function FuzzyMatch (line 15) | func FuzzyMatch(src string, list []string, distance int) bool { function FuzzyFind (line 23) | func FuzzyFind(source string, targets []string, maxDistance int) (found ... function fix (line 53) | func fix(txt string) string { FILE: parsers/fuzzy_test.go function TestFuzzyFind (line 5) | func TestFuzzyFind(t *testing.T) { FILE: parsers/md5.go function isNewFile (line 15) | func isNewFile(db *sql.DB, filename string) (isNew bool, err error) { function storeFile (line 36) | func storeFile(db *sql.DB, filename string) (md5 string) { function md5FromFile (line 52) | func md5FromFile(filename string) (string, error) { FILE: parsers/md5_test.go function TestIsNewFile (line 12) | func TestIsNewFile(t *testing.T) { function openDatabase (line 39) | func openDatabase() (db *sql.DB, err error) { FILE: parsers/sectors.go function SectorsToYaml (line 19) | func SectorsToYaml(yamlFile string) (err error) { function companies (line 98) | func companies(w *bufio.Writer, url string) error { function overwritePrompt (line 125) | func overwritePrompt(filename string) bool { type S (line 141) | type S struct type Sector (line 146) | type Sector struct type Subsector (line 152) | type Subsector struct type Segment (line 158) | type Segment struct function FromSector (line 164) | func FromSector(company, yamlFile string) (companies []string, sectorNam... function removeYamlInvalidChar (line 192) | func removeYamlInvalidChar(text string) string { FILE: parsers/sectors_test.go function TestFromSector (line 8) | func TestFromSector(t *testing.T) { function createYaml (line 28) | func createYaml(filename string) { FILE: parsers/stock.go type stockQuote (line 26) | type stockQuote struct type stockCode (line 36) | type stockCode struct type StockParser (line 45) | type StockParser struct method Quote (line 67) | func (s *StockParser) Quote(code, date string) (float64, error) { method Code (line 85) | func (s *StockParser) Code(companyName, stockType string) (string, err... method SaveB3Quotes (line 100) | func (s *StockParser) SaveB3Quotes(filename string) error { method populateStockQuotes (line 116) | func (s *StockParser) populateStockQuotes(filename string) error { method Save (line 159) | func (s *StockParser) Save(stream io.Reader, code string) (int, error) { function NewStock (line 53) | func NewStock(db *sql.DB, log rapina.Logger) (*StockParser, error) { constant none (line 313) | none int = iota constant alphaVantage (line 314) | alphaVantage constant yahoo (line 315) | yahoo constant b3Quotes (line 316) | b3Quotes constant b3Codes (line 317) | b3Codes function provider (line 321) | func provider(header string) int { function parseAlphaVantage (line 339) | func parseAlphaVantage(line, code string) (*stockQuote, error) { function parseYahoo (line 368) | func parseYahoo(line, code string) (*stockQuote, error) { function parseB3Quote (line 418) | func parseB3Quote(line string) (*stockQuote, error) { type rec (line 470) | type rec struct method open (line 223) | func (s *rec) open(db *sql.DB, provider int) error { method storeQuote (line 242) | func (s *rec) storeQuote(q *stockQuote) error { method storeCode (line 274) | func (s *rec) storeCode(c *stockCode) error { method close (line 303) | func (s *rec) close() error { function parseB3Code (line 478) | func parseB3Code(line string) (*stockCode, error) { FILE: parsers/stock_test.go function Test_parseB3 (line 9) | func Test_parseB3(t *testing.T) { function Test_parseB3Code (line 36) | func Test_parseB3Code(t *testing.T) { FILE: parsers/tables.go constant currentDbVersion (line 11) | currentDbVersion = 210514 constant currentFIIDbVersion (line 12) | currentFIIDbVersion = 210426 constant currentStockCodesVersion (line 13) | currentStockCodesVersion = 210518 constant currentStockQuotesVersion (line 14) | currentStockQuotesVersion = 210305 function allTables (line 122) | func allTables() []string { function whatTable (line 135) | func whatTable(dataType string) (table string, err error) { function createTable (line 169) | func createTable(db *sql.DB, dataType string) (err error) { function createAllTables (line 210) | func createAllTables(db *sql.DB) (err error) { function dbVersion (line 228) | func dbVersion(db *sql.DB, dataType string) (v int, table string) { function wipeDB (line 246) | func wipeDB(db *sql.DB, dataType string) (err error) { function createIndexes (line 263) | func createIndexes(db *sql.DB, table string) error { function hasTable (line 300) | func hasTable(db *sql.DB, tableName string) bool { FILE: parsers/transform.go function Hash (line 18) | func Hash(s string) uint32 { function RemoveDiacritics (line 28) | func RemoveDiacritics(original string) (result string) { FILE: progress/cmd/main.go function main (line 10) | func main() { function f1 (line 42) | func f1() { FILE: progress/progress.go type event (line 13) | type event struct constant spinners (line 27) | spinners = `/-\|` constant colorReset (line 30) | colorReset = "\033[0m" constant colorRed (line 32) | colorRed = "\033[31m" constant colorYellow (line 34) | colorYellow = "\033[33m" constant colorBlue (line 35) | colorBlue = "\033[34m" constant colorCyan (line 37) | colorCyan = "\033[36m" type Progress (line 41) | type Progress struct function init (line 50) | func init() { function SetDebug (line 54) | func SetDebug(on bool) { function Cursor (line 58) | func Cursor(show bool) { function Status (line 69) | func Status(format string, a ...interface{}) { function Error (line 83) | func Error(err error) { function ErrorMsg (line 98) | func ErrorMsg(format string, a ...interface{}) { function Warning (line 113) | func Warning(format string, a ...interface{}) { function Debug (line 128) | func Debug(format string, a ...interface{}) { function Running (line 145) | func Running(msg string) { function Spinner (line 150) | func Spinner() { function RunOK (line 155) | func RunOK() { function RunFail (line 160) | func RunFail() { function Download (line 174) | func Download(a string) { function clearLine (line 201) | func clearLine() { function output (line 211) | func output(buf []byte) { function outputln (line 215) | func outputln(s string) { FILE: reports/db.go type accItems (line 14) | type accItems struct type AccountValue (line 20) | type AccountValue struct method accountsItems (line 30) | func (r Report) accountsItems(cid int) (items []accItems, err error) { method accountsValues (line 65) | func (r Report) accountsValues(year int) (map[uint32]float32, error) { function avg (line 120) | func avg(nums ...float32) float32 { method lastYear (line 140) | func (r Report) lastYear(cid int) (int, bool, error) { method LastYearRange (line 176) | func (r Report) LastYearRange(cid int) (int, int, error) { method dfp (line 215) | func (r Report) dfp(cid, year int, _values map[uint32]float32) error { method RawAccounts (line 245) | func (r Report) RawAccounts(cid, year int) ([]AccountValue, error) { method lastDate (line 292) | func (r Report) lastDate(cid int) (int, string, error) { method lastBalance (line 318) | func (r Report) lastBalance(cid int) (map[uint32]float32, error) { method ttm (line 366) | func (r Report) ttm(cid int, _values map[uint32]float32) error { method lastDFPYear (line 437) | func (r Report) lastDFPYear(cid int) (int, error) { method shares (line 454) | func (r Report) shares(cid int, year int, values map[uint32]float32) err... method sharesAvg (line 483) | func (r Report) sharesAvg(cids []string, year int, values map[uint32]flo... method value (line 511) | func (r Report) value(cid, year int, code uint32) (float32, error) { method accountsAverage (line 538) | func (r Report) accountsAverage(company string, year int) (map[uint32]fl... method movingAvg (line 603) | func (r Report) movingAvg(cids []string, year int, code uint32) (float32... method fromSector (line 629) | func (r Report) fromSector(company string) (companies []string, sectorNa... type CompanyInfo (line 656) | type CompanyInfo struct function companies (line 664) | func companies(db *sql.DB) ([]CompanyInfo, error) { type TickerInfo (line 691) | type TickerInfo struct function tickers (line 699) | func tickers(db *sql.DB, companyName string) ([]TickerInfo, error) { method setCompanyAndTicker (line 736) | func (r *Report) setCompanyAndTicker(company string, spcfctnCd string) e... method getCid (line 769) | func (r *Report) getCid(companyName string) (int, error) { method scale (line 780) | func (r Report) scale(cid, year int, table string) float32 { function timeRange (line 806) | func timeRange(db *sql.DB) (int, int, error) { function removeDuplicates (line 844) | func removeDuplicates(elements []string) []string { // change string to ... type profit (line 863) | type profit struct function companyProfits (line 868) | func companyProfits(db *sql.DB, companyID int) ([]profit, error) { FILE: reports/db_test.go function Test_avg (line 5) | func Test_avg(t *testing.T) { FILE: reports/excel.go type Excel (line 12) | type Excel struct method saveAndCloseExcel (line 28) | func (e *Excel) saveAndCloseExcel(filename string) (err error) { method newSheet (line 45) | func (e *Excel) newSheet(name string) (s *Sheet, err error) { function newExcel (line 19) | func newExcel() (e *Excel) { type Sheet (line 40) | type Sheet struct method printCell (line 61) | func (s Sheet) printCell(row, col int, value interface{}, styleID int) { method printTitle (line 73) | func (s *Sheet) printTitle(cell string, title string) (err error) { method print (line 89) | func (s *Sheet) print(startingCel string, slice *[]string, format int,... method printValue (line 115) | func (s *Sheet) printValue(cell string, value float32, format int, bol... method printFormula (line 134) | func (s *Sheet) printFormula(cell string, formula string, format int, ... method mergeCell (line 176) | func (s *Sheet) mergeCell(a, b string) { method autoWidth (line 183) | func (s *Sheet) autoWidth() { method setColWidth (line 207) | func (s *Sheet) setColWidth(col int, width float64) { function jsonStyle (line 153) | func jsonStyle(size, format int, bold bool) ([]byte, error) { function axis (line 215) | func axis(col, row int) string { function cell2axis (line 222) | func cell2axis(cell string) (col, row int) { function colLetter (line 232) | func colLetter(col int) string { FILE: reports/format.go constant DEFAULT (line 15) | DEFAULT = iota + 1 constant GENERAL (line 18) | GENERAL constant NUMBER (line 19) | NUMBER constant INDEX (line 20) | INDEX constant PERCENT (line 21) | PERCENT constant EMPTY (line 23) | EMPTY constant LEFT (line 26) | LEFT constant RIGHT (line 27) | RIGHT constant CENTER (line 28) | CENTER type formatFont (line 32) | type formatFont struct type formatAlignment (line 41) | type formatAlignment struct type formatBorder (line 53) | type formatBorder struct type formatFill (line 59) | type formatFill struct type formatStyle (line 67) | type formatStyle struct method size (line 117) | func (f *formatStyle) size(s int) { method newStyle (line 121) | func (f formatStyle) newStyle(e *excelize.File) (style int) { function newFormat (line 86) | func newFormat(format int, position int, bold bool) (f *formatStyle) { FILE: reports/format_test.go function TestFormat (line 9) | func TestFormat(t *testing.T) { FILE: reports/list.go function ListCompanies (line 19) | func ListCompanies(db *sql.DB) (names []string, err error) { function ListTickers (line 48) | func ListTickers(db *sql.DB, companyName string) (names []string, err er... function GetSpcfctnCd (line 77) | func GetSpcfctnCd(db *sql.DB, companyName string, ticker string) string { function ListSector (line 104) | func ListSector(db *sql.DB, company, yamlFile string) (err error) { function ListCompaniesProfits (line 139) | func ListCompaniesProfits(db *sql.DB, rate float32) error { FILE: reports/logger.go type Logger (line 9) | type Logger struct method SetOut (line 19) | func (l *Logger) SetOut(out io.Writer) { method Run (line 24) | func (l *Logger) Run(format string, v ...interface{}) { method Ok (line 33) | func (l *Logger) Ok() { method Nok (line 38) | func (l *Logger) Nok() { method Printf (line 43) | func (l *Logger) Printf(format string, v ...interface{}) { method Trace (line 48) | func (l *Logger) Trace(format string, v ...interface{}) { method Debug (line 53) | func (l *Logger) Debug(format string, v ...interface{}) { method Info (line 58) | func (l *Logger) Info(format string, v ...interface{}) { method Warn (line 63) | func (l *Logger) Warn(format string, v ...interface{}) { method Error (line 68) | func (l *Logger) Error(format string, v ...interface{}) { method output (line 75) | func (l *Logger) output(s string) { method outputln (line 84) | func (l *Logger) outputln(s string) { function NewLogger (line 15) | func NewLogger(out io.Writer) *Logger { FILE: reports/logger_test.go function TestLogger (line 10) | func TestLogger(t *testing.T) { function TestLogger_Run (line 67) | func TestLogger_Run(t *testing.T) { FILE: reports/reports.go constant sectorAverage (line 21) | sectorAverage = "MÉDIA DO SETOR" constant grpAccts (line 24) | grpAccts int = iota + 100 constant grpShares (line 25) | grpShares constant grpExtra (line 26) | grpExtra constant grpFleuriet (line 27) | grpFleuriet type metric (line 31) | type metric struct type Report (line 39) | type Report struct method sectorReport (line 376) | func (r Report) sectorReport(sheet *Sheet, company string) (err error) { method companySummary (line 436) | func (r *Report) companySummary(sheet *Sheet, row, col *int, _company,... method Summary (line 597) | func (r *Report) Summary(company string) (map[string]string, error) { method printCodesAndDescriptions (line 753) | func (r Report) printCodesAndDescriptions(sheet *Sheet, accounts []acc... function New (line 69) | func New(parms map[string]interface{}) (*Report, error) { function ReportToXlsx (line 123) | func ReportToXlsx(parms map[string]interface{}) error { function ReportToStdout (line 312) | func ReportToStdout(parms map[string]interface{}) error { function buildStdAccountReport (line 351) | func buildStdAccountReport(data []AccountValue) (*strings.Builder, error) { function metricsList (line 621) | func metricsList(v map[uint32]float32) (metrics []metric) { function zeroIfNeg (line 702) | func zeroIfNeg(n float32) float32 { function safeDiv (line 709) | func safeDiv(n, d float32) float32 { function ident (line 724) | func ident(str string) (spaces string, baseItem bool) { function sum (line 782) | func sum(values map[uint32]float32) float32 { FILE: reports/reports_fii.go constant Rtable (line 21) | Rtable = iota + 1 constant Rcsv (line 22) | Rcsv constant Rcsvrend (line 23) | Rcsvrend type FIITerminal (line 27) | type FIITerminal struct method SetParms (line 59) | func (t *FIITerminal) SetParms(parms map[string]string) { method Dividends (line 76) | func (t FIITerminal) Dividends(codes []string, n int) error { method printDividends (line 149) | func (t FIITerminal) printDividends(code string, dividends *[]rapina.D... method csvDividends (line 177) | func (t FIITerminal) csvDividends(code string, dividends *[]rapina.Div... method csvDividendsOnly (line 199) | func (t FIITerminal) csvDividendsOnly(code string, n int, dividends *[... method Monthly (line 234) | func (t FIITerminal) Monthly(codes []string, n int) error { type FIITerminalOptions (line 33) | type FIITerminalOptions struct function NewFIITerminal (line 38) | func NewFIITerminal(db *sql.DB, opts FIITerminalOptions) (*FIITerminal, ... function revMonthsFromToday (line 223) | func revMonthsFromToday(n int) []string { FILE: reports/reports_test.go function AssertEqual (line 11) | func AssertEqual(t *testing.T, msg string, a interface{}, b interface{}) { function TestIdent (line 19) | func TestIdent(t *testing.T) { function TestZeroIfNeg (line 47) | func TestZeroIfNeg(t *testing.T) { function TestSafeDiv (line 56) | func TestSafeDiv(t *testing.T) { function TestMetricsList (line 65) | func TestMetricsList(t *testing.T) { function TestStdBuildReport (line 91) | func TestStdBuildReport(t *testing.T) { FILE: server/fs_dev.go function init (line 14) | func init() { FILE: server/fs_prod.go function init (line 15) | func init() { FILE: server/payload.go function fiiDividendsPayload (line 12) | func fiiDividendsPayload(srv *Server, fiiCodes []string, months int) int... function fiiDividends (line 26) | func fiiDividends(srv *Server, codes []string, n int) interface{} { FILE: server/server.go type Server (line 21) | type Server struct type ServerOption (line 31) | type ServerOption function WithDB (line 33) | func WithDB(db *sql.DB) ServerOption { function WithAPIKey (line 38) | func WithAPIKey(apiKey string) ServerOption { function WithDataDir (line 43) | func WithDataDir(dataDir string) ServerOption { function Verbose (line 48) | func Verbose(on bool) ServerOption { function initServer (line 54) | func initServer(opts ...ServerOption) (*Server, error) { function HTML (line 88) | func HTML(opts ...ServerOption) { function renderTemplate (line 105) | func renderTemplate(srv *Server) http.HandlerFunc { function ptFmtFloat (line 142) | func ptFmtFloat(f float64) string { function parseCodes (line 147) | func parseCodes(text string) []string { function split (line 159) | func split(r rune) bool { function parseNumeric (line 164) | func parseNumeric(numeric string, alt int) int { FILE: stock.go type StockStorage (line 7) | type StockStorage interface