math-optim/report/report.go
surtur 826347f7a7
All checks were successful
continuous-integration/drone/push Build is passing
go,tex: add logic for go-generating tex reports
2022-06-15 23:36:47 +02:00

31 lines
445 B
Go

// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package report
//go:generate go run gen.go
import (
"fmt"
"io"
"log"
"os"
)
// Print prints stats in a report format.
func Print() {
fmt.Fprint(os.Stderr, " printing report...")
fname := "report.tex"
fh, err := os.Open(fname)
if err != nil {
log.Fatal(err)
}
_, err = io.Copy(os.Stdout, fh)
if err != nil {
log.Fatal(err)
}
}