Documentation
¶
Index ¶
Constants ¶
View Source
const MinValue = 1
MinValue is the min number which should be converted
View Source
const RomanStringMatcher = "^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$"
RomanStringMatcher is a regex to check if string is a roman number
Variables ¶
This section is empty.
Functions ¶
func FromRoman ¶
FromRoman converts a roman string to an integer. Returns an error if string is not a roman number.
func Ordinalize ¶
Ordinalize the number by adding the Ordinal to the number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.