Documentation
¶
Overview ¶
Package export writes a rows file in the import format of another cost tool: FOCUS 1.4 CSV, a Vantage custom provider's CSV, or Datadog's Custom Costs CSV. Every amount leaves as the row wrote it. Nothing is converted, rounded or added up, and a tool that takes one currency refuses a row in another.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoRows = errors.New("the rows file holds no rows")
ErrNoRows is a rows file that holds no row, of which no format writes a file.
var Formats = []Format{FocusCSV, Vantage, Datadog}
Formats are the formats in the order the help names them.
Functions ¶
This section is empty.
Types ¶
type Export ¶
type Export struct {
Files []File
// OmittedTags are the tag keys a Datadog file has no column for, because
// a row lacks them and Datadog takes no blank cell.
OmittedTags []string
}
Export is what a format made of a rows file.
type Format ¶
type Format string
Format is a value of costroid export --format.
The formats export writes.
func ParseFormat ¶
ParseFormat reads a --format value.