summaryrefslogtreecommitdiff
path: root/utilities.go
diff options
context:
space:
mode:
Diffstat (limited to 'utilities.go')
-rw-r--r--utilities.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/utilities.go b/utilities.go
deleted file mode 100644
index 02538fa..0000000
--- a/utilities.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package main
-
-import (
- "strings"
-)
-
-func sanitize_price(price string) int {
- multiply_by_100 := false
-
- price = strings.TrimSpace(price)
-
- price = strings.TrimPrefix(price, "€")
- price = strings.TrimSpace(price)
-
- price = strings.TrimSuffix(price, "€")
- price = strings.TrimSpace(price)
-
- /*
- Extracts the third last char and checks if it's a ",".
- */
- //if ( rune(",") == []rune(price)[-3])
- c := string(price[len(price)-3:])
- c = string(c[0:1])
-
- if "," == c {
- multiply_by_100 = true
- }
-}