From 0dfcd83c8560debdcc98e5748398e0b1c117bb68 Mon Sep 17 00:00:00 2001 From: Branden Date: Sun, 7 Feb 2021 15:21:01 -0600 Subject: [PATCH] updated example in readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 420d891..2706539 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,15 @@ Convert to and from roman numerals in Go. ```go +package main + +import ( + "fmt" + "github.com/brandenc40/romannumeral" +) + func ExampleToInt() { - integer, err := ToInt("IV") + integer, err := romannumeral.ToInt("IV") if err != nil { panic(err) } @@ -12,7 +19,7 @@ func ExampleToInt() { } func ExampleFromInt() { - roman, err := FromInt(4) + roman, err := romannumeral.FromInt(4) if err != nil { panic(err) }