Documentation ¶
Index ¶
- Variables
- func CasualDate(s rules.Strategy) rules.Rule
- func CasualTime(s rules.Strategy) rules.Rule
- func Deadline(s rules.Strategy) rules.Rule
- func ExactMonthDate(s rules.Strategy) rules.Rule
- func Hour(s rules.Strategy) rules.Rule
- func HourMinute(s rules.Strategy) rules.Rule
- func PastTime(s rules.Strategy) rules.Rule
- func Weekday(s rules.Strategy) rules.Rule
Constants ¶
This section is empty.
Variables ¶
View Source
var All = []rules.Rule{ Weekday(rules.Override), CasualDate(rules.Override), CasualTime(rules.Override), Hour(rules.Override), HourMinute(rules.Override), Deadline(rules.Override), PastTime(rules.Override), ExactMonthDate(rules.Override), }
View Source
var INTEGER_WORDS = map[string]int{
"uma": 1,
"um": 1,
"duas": 2,
"dois": 2,
"três": 3,
"quatro": 4,
"cinco": 5,
"seis": 6,
"sete": 7,
"oito": 8,
"nove": 9,
"dez": 10,
"onze": 11,
"doze": 12,
}
View Source
var INTEGER_WORDS_PATTERN = `(?:uma|um|duas|dois|três|quatro|cinco|seis|sete|oito|nove|dez|onze|doze)`
View Source
var MONTH_OFFSET = map[string]int{
"janeiro": 1,
"jan.": 1,
"jan": 1,
"fevereiro": 2,
"fev.": 2,
"fev": 2,
"março": 3,
"mar.": 3,
"mar": 3,
"abril": 4,
"abr.": 4,
"abr": 4,
"maio": 5,
"mai.": 5,
"mai": 5,
"junho": 6,
"jun.": 6,
"jun": 6,
"julho": 7,
"jul.": 7,
"jul": 7,
"agosto": 8,
"ago.": 8,
"ago": 8,
"setembro": 9,
"set.": 9,
"set": 9,
"outubro": 10,
"out.": 10,
"out": 10,
"novembro": 11,
"nov.": 11,
"nov": 11,
"dezembro": 12,
"dez.": 12,
"dez": 12,
}
View Source
var MONTH_OFFSET_PATTERN = `` /* 225-byte string literal not displayed */
View Source
var ORDINAL_WORDS = map[string]int{}/* 160 elements not displayed */
View Source
var ORDINAL_WORDS_PATTERN = `` /* 895-byte string literal not displayed */
View Source
var WEEKDAY_OFFSET = map[string]int{
"domingo": 0,
"dom": 0,
"segunda-feira": 1,
"segunda": 1,
"seg": 1,
"terça-feira": 2,
"terça": 2,
"ter": 2,
"quarta-feira": 3,
"quarta": 3,
"qua": 3,
"quinta-feira": 4,
"quinta": 4,
"qui": 4,
"sexta-feira": 5,
"sexta": 5,
"sex": 5,
"sábado": 6,
"sab": 6,
}
View Source
var WEEKDAY_OFFSET_PATTERN = "" /* 147-byte string literal not displayed */
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.