package parser
import "github.com/influxdata/flux/internal/parser"
Index ¶
- func MustParseTime(lit string) time.Time
- func ParseDuration(lit string) ([]ast.Duration, error)
- func ParseRegexp(lit string) (*regexp.Regexp, error)
- func ParseString(lit string) (string, error)
- func ParseText(lit string) (string, error)
- func ParseTime(lit string) (time.Time, error)
Functions ¶
func MustParseTime ¶
MustParseTime parses a time literal and panics in the case of an error.
func ParseDuration ¶
ParseDuration will convert a string into components of the duration.
func ParseRegexp ¶
ParseRegexp converts text surrounded by forward slashes into a regular expression.
func ParseString ¶
ParseString removes quotes and unescapes the string literal.
func ParseText ¶
ParseText parses a UTF-8 block of text with escaping rules.
func ParseTime ¶
ParseTime will parse a time literal from a string.
Source Files ¶
- Version
- v0.196.1 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 1 day ago –
Tools for package owners.