ru

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var INTEGER_WORDS = map[string]int{
	"час":         1,
	"один":        1,
	"одну":        1,
	"одного":      1,
	"два":         2,
	"две":         2,
	"три":         3,
	"четыре":      4,
	"пять":        5,
	"шесть":       6,
	"семь":        7,
	"восемь":      8,
	"девять":      9,
	"десять":      10,
	"одиннадцать": 11,
	"двенадцать":  12,
}
View Source
var INTEGER_WORDS_PATTERN = `` /* 187-byte string literal not displayed */
View Source
var WEEKDAY_OFFSET = map[string]int{
	"воскресенье":  0,
	"воскресенья":  0,
	"воск":         0,
	"понедельник":  1,
	"понедельнику": 1,
	"понедельника": 1,
	"пн":           1,
	"вторник":      2,
	"вторника":     2,
	"вторнику":     2,
	"вт":           2,
	"среда":        3,
	"среду":        3,
	"среде":        3,
	"ср":           3,
	"четверг":      4,
	"четверга":     4,
	"четвергу":     4,
	"чт":           4,
	"пятница":      5,
	"пятнице":      5,
	"пятницы":      5,
	"пятницу":      5,
	"пт":           5,
	"суббота":      6,
	"субботы":      6,
	"субботе":      6,
	"субботу":      6,
	"сб":           6,
}
View Source
var WEEKDAY_OFFSET_PATTERN = "" /* 412-byte string literal not displayed */

Functions

func CasualDate

func CasualDate(s rules.Strategy) rules.Rule

func CasualTime

func CasualTime(s rules.Strategy) rules.Rule

func Deadline

func Deadline(s rules.Strategy) rules.Rule

func Hour

func Hour(s rules.Strategy) rules.Rule

func HourMinute

func HourMinute(s rules.Strategy) rules.Rule

func Weekday

func Weekday(s rules.Strategy) rules.Rule

Types

This section is empty.

Jump to

Keyboard shortcuts

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