mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 00:52:40 +00:00
gofmt: bring internal/ and cmd/ back to gofmt -l clean
Mechanical `gofmt -w ./internal ./cmd`. Mostly struct-field realignment that had drifted, plus a few trailing-newline fixes. No behaviour change — gofmt is semantics-preserving, and build/vet/test are green either side. Split out from the code-review fixes that follow so those stay reviewable instead of hiding inside a wall of realignment.
This commit is contained in:
@@ -17,24 +17,24 @@ import (
|
||||
|
||||
// finnhubQuote is the response from the Finnhub quote endpoint.
|
||||
type finnhubQuote struct {
|
||||
Current float64 `json:"c"` // Current price
|
||||
Change float64 `json:"d"` // Change
|
||||
ChangePct float64 `json:"dp"` // Percent change
|
||||
High float64 `json:"h"` // High price of the day
|
||||
Low float64 `json:"l"` // Low price of the day
|
||||
Open float64 `json:"o"` // Open price of the day
|
||||
PrevClose float64 `json:"pc"` // Previous close price
|
||||
Timestamp int64 `json:"t"` // Timestamp
|
||||
Current float64 `json:"c"` // Current price
|
||||
Change float64 `json:"d"` // Change
|
||||
ChangePct float64 `json:"dp"` // Percent change
|
||||
High float64 `json:"h"` // High price of the day
|
||||
Low float64 `json:"l"` // Low price of the day
|
||||
Open float64 `json:"o"` // Open price of the day
|
||||
PrevClose float64 `json:"pc"` // Previous close price
|
||||
Timestamp int64 `json:"t"` // Timestamp
|
||||
}
|
||||
|
||||
// finnhubProfile is the response from the Finnhub company profile endpoint.
|
||||
type finnhubProfile struct {
|
||||
Name string `json:"name"`
|
||||
Ticker string `json:"ticker"`
|
||||
Exchange string `json:"exchange"`
|
||||
Industry string `json:"finnhubIndustry"`
|
||||
MarketCap float64 `json:"marketCapitalization"` // in millions
|
||||
Currency string `json:"currency"`
|
||||
Name string `json:"name"`
|
||||
Ticker string `json:"ticker"`
|
||||
Exchange string `json:"exchange"`
|
||||
Industry string `json:"finnhubIndustry"`
|
||||
MarketCap float64 `json:"marketCapitalization"` // in millions
|
||||
Currency string `json:"currency"`
|
||||
}
|
||||
|
||||
// stockCacheEntry holds cached stock data.
|
||||
|
||||
Reference in New Issue
Block a user