mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 15:10:59 +00:00
GCTCLI: Destination var/arg check usage fixes (#421)
* GCTCLI param and linter fixes * Linter fixes * Add more basic validation and address codelingo nits * Add arg number support to cancelOrder and more validity checks
This commit is contained in:
@@ -11,15 +11,17 @@ const (
|
||||
ErrStrAmountMustBeGreaterThanZero = "amount must be greater than 0"
|
||||
// ErrStrAddressisInvalid message to return when address is invalid for crypto request
|
||||
ErrStrAddressisInvalid = "address is not valid"
|
||||
// ErrStrAddressNotSet message to returh when address is empty
|
||||
// ErrStrAddressNotSet message to return when address is empty
|
||||
ErrStrAddressNotSet = "address cannot be empty"
|
||||
// ErrStrNoCurrencySet message to return when no currency is set
|
||||
ErrStrNoCurrencySet = "currency not set"
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrRequestCannotBeNil message to return when a request is nil
|
||||
ErrRequestCannotBeNil = errors.New("request cannot be nil")
|
||||
ErrInvalidRequest = errors.New("invalid request type")
|
||||
// ErrInvalidRequest message to return when a request is invalid
|
||||
ErrInvalidRequest = errors.New("invalid request type")
|
||||
)
|
||||
|
||||
// GenericInfo stores genric withdraw request info
|
||||
|
||||
Reference in New Issue
Block a user