Fix comments according to best practices by effective go (#219)

This commit is contained in:
CodeLingo Bot
2018-12-11 14:50:07 +13:00
committed by Adrian Gallagher
parent 52609827eb
commit 05f9f40723
9 changed files with 14 additions and 14 deletions

View File

@@ -407,7 +407,7 @@ func (b *Bitflyer) GetFee(feeBuilder exchange.FeeBuilder) (float64, error) {
return fee, nil
}
// getDepositFee returns fee when performing a trade
// calculateTradingFee returns fee when performing a trade
func calculateTradingFee(purchasePrice float64, amount float64) float64 {
fee := 0.0015
// bitflyer has fee tiers, but does not disclose them via API, so the largest has to be assumed

View File

@@ -592,7 +592,7 @@ func (b *Bithumb) GetFee(feeBuilder exchange.FeeBuilder) (float64, error) {
return fee, nil
}
// getDepositFee returns fee when performing a trade
// calculateTradingFee returns fee when performing a trade
func calculateTradingFee(purchasePrice float64, amount float64) float64 {
fee := 0.0015

View File

@@ -45,7 +45,7 @@ func (n *Nonce) Set(val int64) {
n.mtx.Unlock()
}
// Returns a string version of the nonce
// String returns a string version of the nonce
func (n *Nonce) String() string {
n.mtx.Lock()
result := strconv.FormatInt(n.n, 10)

View File

@@ -423,7 +423,7 @@ func getInternationalBankWithdrawalFee(currency string, amount float64, bankTran
return fee
}
// No real fees for yobit deposits, but want to be explicit on what each payment type supports
// getInternationalBankDepositFee; No real fees for yobit deposits, but want to be explicit on what each payment type supports
func getInternationalBankDepositFee(currency string, amount float64, bankTransactionType exchange.InternationalBankTransactionType) float64 {
var fee float64
switch bankTransactionType {