br

package
v2.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT, Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

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 ExactMonthDate

func ExactMonthDate(s rules.Strategy) rules.Rule

func Hour

func Hour(s rules.Strategy) rules.Rule

func HourMinute

func HourMinute(s rules.Strategy) rules.Rule

func PastTime

func PastTime(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