/romanparse

Simple go package which converts roman strings to integer

Primary LanguageGoMIT LicenseMIT

Build Status Coverage Go Report Card Godoc Reference

romanparse

Simple go package which converts roman strings to integer

Example

import (
  "fmt"
  "github.com/caio-ribeiro-pereira/romanparse"
)

func main() {
  number, err := romanparse.ToInteger("XVI")
  if err == nil {
    fmt.Print(number) // 16
  }
}

Install

go get -u github.com/caio-ribeiro-pereira/romanparse