diff options
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 } |
