diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-25 21:29:16 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-25 21:29:16 +0200 |
| commit | a701845a2751a3a260e9b3cc3b24e900eeb93391 (patch) | |
| tree | 4645b31e86ed71ef6001d0e5327106c454d6ac8c /internal/repl | |
| parent | 9bee0ec4c3dd232d8e3957eb3d4b27cca4a8414c (diff) | |
Rename calculator package to perc
Renamed internal/calculator directory to internal/perc, updated package name from 'calculator' to 'perc', and updated all import references.
Diffstat (limited to 'internal/repl')
| -rw-r--r-- | internal/repl/handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/repl/handlers.go b/internal/repl/handlers.go index f68e926..2cf62c4 100644 --- a/internal/repl/handlers.go +++ b/internal/repl/handlers.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "codeberg.org/snonux/perc/internal/calculator" + "codeberg.org/snonux/perc/internal/perc" "codeberg.org/snonux/perc/internal/rpn" ) @@ -224,7 +224,7 @@ type PercentageHandler struct { // Returns: (output string, handled bool, err error) func (h *PercentageHandler) Handle(repl *REPL, input string) (output string, handled bool, err error) { // Run the percentage calculation - result, err := calculator.Parse(input) + result, err := perc.Parse(input) if err != nil { // Not a percentage expression, pass to next handler return h.Next(repl, input) |
