Skip to content

Commit

Permalink
update default currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Oct 24, 2020
1 parent 10963b2 commit bb66fa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/er/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/olekukonko/tablewriter"
)

const defaultFromt = "USD"
const defaultFrom = "USD"

var defaultTo = []string{"USD", "CNY", "EUR", "GBP", "CAD", "AUD", "JPY"}
var defaultTo = []string{"USD", "CNY", "SGD", "EUR", "GBP", "CAD", "AUD", "JPY"}
var defaultAPIKeyPath = filepath.Join(os.Getenv("HOME"), ".er")

func main() {
Expand Down Expand Up @@ -131,7 +131,7 @@ func parseArgs(args []string) (string, float32, []string) {
}

if len(args) == 1 {
from = defaultFromt
from = defaultFrom
amount = 1
to = defaultTo
}
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/TimothyYe/exchangerate

go 1.15

require (
github.com/fatih/color v1.7.0
github.com/mattn/go-colorable v0.0.9 // indirect
Expand Down

0 comments on commit bb66fa6

Please sign in to comment.