Skip to content

braddle/romannumeral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roman Numeral

First attempt at programming in Go

PACKAGE DOCUMENTATION

package romannumeral import "romannumeral"

TYPES

type RomanNumeral string

func NewRomanNumeral(numeral string) (RomanNumeral, error) NewRomanNumeral creates an instance of a RomanNumeral from the given numeral string. If the numeral contains invalid characters an error is returned

func (r RomanNumeral) String() string String returns the RomanNumeral as a string

func (r RomanNumeral) ToInt() int ToInt returns an int representation of the RomanNumeral

About

Building a simple roman numeral converter in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages