package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 5, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
romanparse
Simple go package which converts roman strings to integer
Example
import (
"fmt"
"github.com/caio-ribeiro-pereira/romanparse"
)
func main() {
roman := "XVI"
fmt.Printf("%s = %i\n", roman, romanparse.ToInteger(roman))
// XVI = 16
}
Install
go get -u github.com/caio-ribeiro-pereira/romanparse
Documentation
¶
Package romanparse converts strings in roman format to int.
| Function | Result |
|---------------------------------|--------|
| ToInteger('XV') | 15 |
Converts roman strings to int
Source Files
¶
Click to show internal directories.
Click to hide internal directories.