From 39d02975dc58830471ca86702e07533a43fc6424 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 29 Jul 2023 11:28:37 -0230 Subject: radian/degree mode toggle command --- calc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calc.go') diff --git a/calc.go b/calc.go index 1d969cc..8a114a4 100644 --- a/calc.go +++ b/calc.go @@ -5,11 +5,11 @@ import ( "strings" ) -type AngleMode int +type AngleMode bool const ( - modeDeg = iota - modeRad + modeDeg = false + modeRad = true ) type Calculator struct { -- cgit v1.2.3