Migrate from gometalinter.v2 to golangci-lint (#249)

* Migrate from gometalinter.v2 to golangci-lint
This commit is contained in:
Adrian Gallagher
2019-03-01 16:10:29 +11:00
committed by GitHub
parent 81852f2e01
commit 7dcb1ab553
133 changed files with 2179 additions and 2204 deletions

View File

@@ -18,7 +18,7 @@ type Order struct {
}
// NewOrder creates a new order and returns a an orderID
func NewOrder(Exchange string, amount, price float64) int {
func NewOrder(exchangeName string, amount, price float64) int {
order := &Order{}
if len(Orders) == 0 {
order.OrderID = 0
@@ -26,7 +26,7 @@ func NewOrder(Exchange string, amount, price float64) int {
order.OrderID = len(Orders)
}
order.Exchange = Exchange
order.Exchange = exchangeName
order.Amount = amount
order.Price = price
Orders = append(Orders, order)