aboutsummaryrefslogtreecommitdiffstats
path: root/calc.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-07-29 11:28:37 -0230
committerSam Anthony <sam@samanthony.xyz>2023-07-29 11:28:37 -0230
commit39d02975dc58830471ca86702e07533a43fc6424 (patch)
tree2e9b77f7e34c841f8b8825455c982f5000ae8dc6 /calc.go
parent008e4021375883610cf1b07e005a4176acadc0de (diff)
downloadpfc-39d02975dc58830471ca86702e07533a43fc6424.zip
radian/degree mode toggle command
Diffstat (limited to 'calc.go')
-rw-r--r--calc.go6
1 files changed, 3 insertions, 3 deletions
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 {