parser

package
v0.0.0-...-2f98a9c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateParser

type DateParser interface {
	Parse(text string) (*ParseResult, error)
}

func New

func New() DateParser

type ParseResult

type ParseResult struct {
	Time        time.Time
	MatchedText string
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (Parser) Parse

func (p Parser) Parse(text string) (*ParseResult, error)

Jump to

Keyboard shortcuts

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