From a701845a2751a3a260e9b3cc3b24e900eeb93391 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 25 Mar 2026 21:29:16 +0200 Subject: Rename calculator package to perc Renamed internal/calculator directory to internal/perc, updated package name from 'calculator' to 'perc', and updated all import references. --- internal/repl/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/repl') 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) -- cgit v1.2.3