Default to '$' symbol if data is missing, add more currencies

master
user.name 5 years ago
parent e7062445f4
commit d7a0153542
  1. 4
      layout.go

@ -296,8 +296,12 @@ func currency(str... string) string {
if len(str) < 2 { if len(str) < 2 {
return "ERR" return "ERR"
} }
//default to $
symbol := "$" symbol := "$"
switch (str[1]){ switch (str[1]){
case "JPY":
symbol = "¥"
break
case "EUR": case "EUR":
symbol = "€" symbol = "€"
break break

Loading…
Cancel
Save