romanparse

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 2 Imported by: 0

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

Overview

Package romanparse converts strings in roman format to int.

| Function                        | Result |
|---------------------------------|--------|
| ToInteger('XV')                 | 15     |

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInteger

func ToInteger(value string) (int, error)

Converts roman strings to int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL