diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-01-22 17:19:33 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-01-22 17:19:33 -0500 |
| commit | 5e59867578f01fdaa5a62558cf23935b95e807ad (patch) | |
| tree | a88c243d14731d569d7426fb62be41b3346aae93 /calc.go | |
| parent | 4f9e220638ea62443db25d252c4e12ede2c7f9c5 (diff) | |
| download | pfc-5e59867578f01fdaa5a62558cf23935b95e807ad.zip | |
rename angle mode constants
Diffstat (limited to 'calc.go')
| -rw-r--r-- | calc.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -5,21 +5,21 @@ import "strconv" type AngleMode bool const ( - modeDeg = false - modeRad = true + degrees AngleMode = false + radians AngleMode = true ) func (a AngleMode) String() string { - if a == modeDeg { + if a == degrees { return "deg" } return "rad" } type Calculator struct { - stack Stack - buf string - anglem AngleMode + stack Stack + buf string + angleMode AngleMode } // swap swaps the values of the buffer and the bottom element of the stack. If |