parsers

package
v1.25.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package parsers contains various text parser utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDates

func ParseDates(dateFormat, startDate, endDate string) (startDateParsed, endDateParsed time.Time, err error)

ParseDates converts two strings to time.Time() format using the provided date format. In case of any error or if any input string is empty, error object is returned together with "null" dates.

func ParseRuleSelector added in v1.14.0

func ParseRuleSelector(ruleSelector types.RuleSelector) (types.Component, types.ErrorKey, error)

ParseRuleSelector function parses the rule selector which consists of component name and error key separaed by "|" character.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL