diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-06-15 13:26:17 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-06-15 13:26:17 -0400 |
| commit | bb84196aaf227904e8cb9afc846a829a1e6e0365 (patch) | |
| tree | 9867ed04d18c03627c95fe25aff7cf2cfcbe8842 /pkg/query/outputs.go | |
| parent | 6b71d6419505546bdffd1ce3295fb3e01d466449 (diff) | |
Update tests and fix minor bugs
Diffstat (limited to 'pkg/query/outputs.go')
| -rw-r--r-- | pkg/query/outputs.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/query/outputs.go b/pkg/query/outputs.go index 00b9ddf..7dac42e 100644 --- a/pkg/query/outputs.go +++ b/pkg/query/outputs.go @@ -102,7 +102,7 @@ func (o JsonOutput) Output(docs []*index.Document) (string, error) { return string(b), nil } -func parseOutputFormat(formatStr string) ([]OutputToken, []string, error) { +func ParseOutputFormat(formatStr string) ([]OutputToken, []string, error) { toks := make([]OutputToken, 0, 16) curTok := make([]rune, 0, 16) strToks := make([]string, 0, 8) @@ -157,7 +157,7 @@ func parseOutputFormat(formatStr string) ([]OutputToken, []string, error) { } func NewCustomOutput(formatStr string, datetimeFormat string) (CustomOutput, error) { - outToks, strToks, err := parseOutputFormat(formatStr) + outToks, strToks, err := ParseOutputFormat(formatStr) if err != nil { return CustomOutput{}, err } |
