From 63273bbe5a7f886195267e4375e486f0b34fd59b Mon Sep 17 00:00:00 2001 From: Ivan Malopinsky Date: Sun, 4 Feb 2018 22:48:54 -0500 Subject: [PATCH] parse float args like 99.9 --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 5bdff2d..e4263ad 100644 --- a/main.go +++ b/main.go @@ -72,8 +72,8 @@ func Run(args []string) { return } - coverage, _ := strconv.Atoi(args[0]) - badge, err := RenderBadge(coverage) + coverage, _ := strconv.ParseFloat(args[0], 64) + badge, err := RenderBadge(int(coverage)) if err != nil { panic(err)