mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Linter: Spelling fixes (#1554)
This commit is contained in:
@@ -106,7 +106,7 @@ func (s *GRPCServer) StartRPCRESTProxy() error {
|
||||
targetDir := utils.GetTLSDir(s.config.GRPC.TLSDir)
|
||||
creds, err := credentials.NewClientTLSFromFile(filepath.Join(targetDir, "cert.pem"), "")
|
||||
if err != nil {
|
||||
return fmt.Errorf("unabled to start gRPC proxy. Err: %w", err)
|
||||
return fmt.Errorf("unable to start gRPC proxy. Err: %w", err)
|
||||
}
|
||||
|
||||
mux := runtime.NewServeMux()
|
||||
|
||||
@@ -4035,13 +4035,13 @@ var getHistoricCandlesExtendedCommand = &cli.Command{
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "start",
|
||||
Usage: "the date to begin retrieveing candles. Any candles before this date will be filtered",
|
||||
Usage: "the date to begin retrieving candles. Any candles before this date will be filtered",
|
||||
Value: time.Now().AddDate(0, -1, 0).Format(time.DateTime),
|
||||
Destination: &startTime,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "end",
|
||||
Usage: "the date to end retrieveing candles. Any candles after this date will be filtered",
|
||||
Usage: "the date to end retrieving candles. Any candles after this date will be filtered",
|
||||
Value: time.Now().Format(time.DateTime),
|
||||
Destination: &endTime,
|
||||
},
|
||||
|
||||
@@ -5,3 +5,4 @@ flate
|
||||
freez
|
||||
zar
|
||||
insid
|
||||
totalin
|
||||
|
||||
@@ -293,7 +293,7 @@ func (c Code) Upper() Code {
|
||||
return c
|
||||
}
|
||||
|
||||
// UnmarshalJSON comforms type to the umarshaler interface
|
||||
// UnmarshalJSON conforms type to the umarshaler interface
|
||||
func (c *Code) UnmarshalJSON(d []byte) error {
|
||||
var newcode string
|
||||
err := json.Unmarshal(d, &newcode)
|
||||
|
||||
@@ -52,7 +52,7 @@ func (c Currencies) Join() string {
|
||||
return strings.Join(c.Strings(), ",")
|
||||
}
|
||||
|
||||
// UnmarshalJSON comforms type to the umarshaler interface
|
||||
// UnmarshalJSON conforms type to the umarshaler interface
|
||||
func (c *Currencies) UnmarshalJSON(d []byte) error {
|
||||
var configCurrencies string
|
||||
err := json.Unmarshal(d, &configCurrencies)
|
||||
|
||||
@@ -67,7 +67,7 @@ func (p Pairs) Format(pairFmt PairFormat) Pairs {
|
||||
return pairs
|
||||
}
|
||||
|
||||
// UnmarshalJSON comforms type to the umarshaler interface
|
||||
// UnmarshalJSON conforms type to the umarshaler interface
|
||||
func (p *Pairs) UnmarshalJSON(d []byte) error {
|
||||
var pairs string
|
||||
err := json.Unmarshal(d, &pairs)
|
||||
|
||||
@@ -150,7 +150,7 @@ func (a Item) IsValid() bool {
|
||||
return a != Empty && supportedFlag&a == a
|
||||
}
|
||||
|
||||
// UnmarshalJSON comforms type to the umarshaler interface
|
||||
// UnmarshalJSON conforms type to the umarshaler interface
|
||||
func (a *Item) UnmarshalJSON(d []byte) error {
|
||||
var assetString string
|
||||
err := json.Unmarshal(d, &assetString)
|
||||
@@ -171,7 +171,7 @@ func (a *Item) UnmarshalJSON(d []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON comforms type to the marshaller interface
|
||||
// MarshalJSON conforms type to the marshaller interface
|
||||
func (a Item) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(a.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user