Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build by adding /v4 to module path #260

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
post:
- upx "{{ .Path }}"
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/cmd.Version={{.Version}}'
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure these should remain with a /v4/ but not certain. Have you run a test build to confirm this should be here?

- id: build-linux
main: ./main.go
env:
Expand All @@ -30,7 +30,7 @@ builds:
post:
- upx "{{ .Path }}"
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/cmd.Version={{.Version}}'
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
- id: build
main: ./main.go
env:
Expand All @@ -39,7 +39,7 @@ builds:
- windows
- darwin
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/cmd.Version={{.Version}}'
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
archives:
-
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
Expand All @@ -62,7 +62,7 @@ brews:
commit_author:
name: achannarasappa
email: git@ani.dev
homepage: "https://github.com/achannarasappa/ticker"
homepage: "https://github.com/achannarasappa/ticker/v4"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL should remain without a /v4/

description: "Terminal stock ticker with live updates and position tracking"
license: "GPLv3"
dockers:
Expand Down Expand Up @@ -115,7 +115,7 @@ nfpms:
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
builds:
- build-linux-64
homepage: https://github.com/achannarasappa/ticker
homepage: https://github.com/achannarasappa/ticker/v4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL should remain without a /v4/

maintainer: Ani Channarasappa <ticker@ani.dev>
description: Terminal stock ticker with live updates and position tracking
license: GPLv3
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p>
<a href="https://github.com/achannarasappa/ticker/releases"><img src="https://img.shields.io/github/v/release/achannarasappa/ticker" alt="Latest Release"></a>
<a href="https://github.com/achannarasappa/ticker/actions"><img src="https://github.com/achannarasappa/ticker/workflows/test/badge.svg" alt="Build Status"></a>
<a href="https://github.com/achannarasappa/ticker/v4/releases"><img src="https://img.shields.io/github/v/release/achannarasappa/ticker" alt="Latest Release"></a>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URLs in the readme should remain without a /v4/

<a href="https://github.com/achannarasappa/ticker/v4/actions"><img src="https://github.com/achannarasappa/ticker/v4/workflows/test/badge.svg" alt="Build Status"></a>
<a href='https://coveralls.io/github/achannarasappa/ticker?branch=master'><img src='https://coveralls.io/repos/github/achannarasappa/ticker/badge.svg?branch=master' alt='Coverage Status' /></a>
<a href='https://goreportcard.com/badge/github.com/achannarasappa/ticker'><img src='https://goreportcard.com/badge/github.com/achannarasappa/ticker' alt='Report Card' /></a>
<a href='https://goreportcard.com/badge/github.com/achannarasappa/ticker/v4'><img src='https://goreportcard.com/badge/github.com/achannarasappa/ticker/v4' alt='Report Card' /></a>
</p>

<h1 align="center">Ticker</h2>
Expand All @@ -22,7 +22,7 @@ Terminal stock watcher and stock position tracker

## Install

Download the pre-compiled binaries from the [releases page](https://github.com/achannarasappa/ticker/releases) and copy to a location in `PATH` or see quick installs below
Download the pre-compiled binaries from the [releases page](https://github.com/achannarasappa/ticker/v4/releases) and copy to a location in `PATH` or see quick installs below

**homebrew**
```
Expand Down Expand Up @@ -160,7 +160,7 @@ Watchlists and holdings can be grouped in `.ticker.yml` under the `groups` prope

* *none* - symbols with no suffix will default to Yahoo Finance as the data source
* `.X` - symbols with this suffix are shorthand symbols that are specific to ticker and intended to provide more concise and familiar symbols for popular assets (e.g. using `SOL.X` rather than `SOLANA.CG`)
* The full list of ticker symbols can be found [here](https://github.com/achannarasappa/ticker-static/blob/master/symbols.csv). Initial values are populated with the top 250 cryptocurrencies from CoinGecko at time of release
* The full list of ticker symbols can be found [here](https://github.com/achannarasappa/ticker/v4-static/blob/master/symbols.csv). Initial values are populated with the top 250 cryptocurrencies from CoinGecko at time of release
* `.CG` - symbols with this suffix will use CoinGecko as the data source. The proper coin name can be found on the CoinGecko page in the *API id* field (e.g. for `SOL` go to the coin's [page on CoinGecko](https://www.coingecko.com/en/coins/solana), find the value is `solana`, and use the symbol `SOLANA.CG` in ticker)

### Currency Conversion
Expand Down
8 changes: 4 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

"github.com/spf13/cobra"

"github.com/achannarasappa/ticker/internal/cli"
c "github.com/achannarasappa/ticker/internal/common"
"github.com/achannarasappa/ticker/internal/print"
"github.com/achannarasappa/ticker/internal/ui"
"github.com/achannarasappa/ticker/v4/internal/cli"
c "github.com/achannarasappa/ticker/v4/internal/common"
"github.com/achannarasappa/ticker/v4/internal/print"
"github.com/achannarasappa/ticker/v4/internal/ui"
)

//nolint:gochecknoglobals
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/achannarasappa/ticker
module github.com/achannarasappa/ticker/v4

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions internal/asset/asset.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package asset

import (
c "github.com/achannarasappa/ticker/internal/common"
"github.com/achannarasappa/ticker/internal/currency"
c "github.com/achannarasappa/ticker/v4/internal/common"
"github.com/achannarasappa/ticker/v4/internal/currency"
)

// AggregatedLot represents a cost basis lot of an asset grouped by symbol
Expand Down
2 changes: 1 addition & 1 deletion internal/asset/asset_fixture_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package asset_test

import (
c "github.com/achannarasappa/ticker/internal/common"
c "github.com/achannarasappa/ticker/v4/internal/common"
)

var fixtureAssetGroupQuote = c.AssetGroupQuote{
Expand Down
4 changes: 2 additions & 2 deletions internal/asset/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

. "github.com/achannarasappa/ticker/internal/asset"
c "github.com/achannarasappa/ticker/internal/common"
. "github.com/achannarasappa/ticker/v4/internal/asset"
c "github.com/achannarasappa/ticker/v4/internal/common"
)

var _ = Describe("Asset", func() {
Expand Down
4 changes: 2 additions & 2 deletions internal/asset/currency.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package asset

import (
c "github.com/achannarasappa/ticker/internal/common"
"github.com/achannarasappa/ticker/internal/currency"
c "github.com/achannarasappa/ticker/v4/internal/common"
"github.com/achannarasappa/ticker/v4/internal/currency"
)

func convertAssetQuotePriceCurrency(currencyRateByUse currency.CurrencyRateByUse, quotePrice c.QuotePrice) c.QuotePrice {
Expand Down
10 changes: 5 additions & 5 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"fmt"
"strings"

"github.com/achannarasappa/ticker/internal/cli/symbol"
c "github.com/achannarasappa/ticker/internal/common"
"github.com/achannarasappa/ticker/internal/quote"
yahooClient "github.com/achannarasappa/ticker/internal/quote/yahoo/client"
"github.com/achannarasappa/ticker/internal/ui/util"
"github.com/achannarasappa/ticker/v4/internal/cli/symbol"
c "github.com/achannarasappa/ticker/v4/internal/common"
"github.com/achannarasappa/ticker/v4/internal/quote"
yahooClient "github.com/achannarasappa/ticker/v4/internal/quote/yahoo/client"
"github.com/achannarasappa/ticker/v4/internal/ui/util"

"github.com/adrg/xdg"
"github.com/go-resty/resty/v2"
Expand Down Expand Up @@ -68,7 +68,7 @@
func GetDependencies() c.Dependencies {

client := yahooClient.New(resty.New(), resty.New())
yahooClient.RefreshSession(client, resty.New())

Check failure on line 71 in internal/cli/cli.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `yahooClient.RefreshSession` is not checked (errcheck)

return c.Dependencies{
Fs: afero.NewOsFs(),
Expand Down
8 changes: 4 additions & 4 deletions internal/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import (
"github.com/spf13/afero"
"github.com/spf13/cobra"

"github.com/achannarasappa/ticker/internal/cli"
. "github.com/achannarasappa/ticker/internal/cli"
c "github.com/achannarasappa/ticker/internal/common"
"github.com/achannarasappa/ticker/test/http"
"github.com/achannarasappa/ticker/v4/internal/cli"
. "github.com/achannarasappa/ticker/v4/internal/cli"
c "github.com/achannarasappa/ticker/v4/internal/common"
"github.com/achannarasappa/ticker/v4/test/http"
)

func getStdout(fn func()) string {
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/symbol/symbol.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"errors"
"io"

c "github.com/achannarasappa/ticker/internal/common"
c "github.com/achannarasappa/ticker/v4/internal/common"

Check failure on line 8 in internal/cli/symbol/symbol.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/achannarasappa/ticker/v4/internal/common' is not allowed from list 'Main' (depguard)
"github.com/go-resty/resty/v2"

Check failure on line 9 in internal/cli/symbol/symbol.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/go-resty/resty/v2' is not allowed from list 'Main' (depguard)
)

type SymbolSourceMap struct { //nolint:golint,revive
Expand Down
6 changes: 3 additions & 3 deletions internal/cli/symbol/symbol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"net/http"

"github.com/achannarasappa/ticker/internal/cli/symbol"
c "github.com/achannarasappa/ticker/internal/common"
h "github.com/achannarasappa/ticker/test/http"
"github.com/achannarasappa/ticker/v4/internal/cli/symbol"
c "github.com/achannarasappa/ticker/v4/internal/common"
h "github.com/achannarasappa/ticker/v4/test/http"
)

var _ = Describe("Symbol", func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/currency/currency.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package currency

import (
c "github.com/achannarasappa/ticker/internal/common"
c "github.com/achannarasappa/ticker/v4/internal/common"
)

// CurrencyRateByUse represents the currency conversion rate for each use case
Expand Down
4 changes: 2 additions & 2 deletions internal/currency/currency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

c "github.com/achannarasappa/ticker/internal/common"
. "github.com/achannarasappa/ticker/internal/currency"
c "github.com/achannarasappa/ticker/v4/internal/common"
. "github.com/achannarasappa/ticker/v4/internal/currency"
)

var _ = Describe("Currency", func() {
Expand Down
8 changes: 4 additions & 4 deletions internal/print/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"encoding/json"
"fmt"

"github.com/achannarasappa/ticker/internal/asset"
c "github.com/achannarasappa/ticker/internal/common"
quote "github.com/achannarasappa/ticker/internal/quote"
"github.com/achannarasappa/ticker/internal/ui/util"
"github.com/achannarasappa/ticker/v4/internal/asset"
c "github.com/achannarasappa/ticker/v4/internal/common"
quote "github.com/achannarasappa/ticker/v4/internal/quote"
"github.com/achannarasappa/ticker/v4/internal/ui/util"

"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/print/print_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"io/ioutil"
"os"

c "github.com/achannarasappa/ticker/internal/common"
"github.com/achannarasappa/ticker/internal/print"
. "github.com/achannarasappa/ticker/test/http"
c "github.com/achannarasappa/ticker/v4/internal/common"
"github.com/achannarasappa/ticker/v4/internal/print"
. "github.com/achannarasappa/ticker/v4/test/http"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion internal/quote/coingecko/coingecko.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"fmt"
"strings"

c "github.com/achannarasappa/ticker/internal/common"
c "github.com/achannarasappa/ticker/v4/internal/common"

Check failure on line 7 in internal/quote/coingecko/coingecko.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/achannarasappa/ticker/v4/internal/common' is not allowed from list 'Main' (depguard)
"github.com/go-resty/resty/v2"

Check failure on line 8 in internal/quote/coingecko/coingecko.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/go-resty/resty/v2' is not allowed from list 'Main' (depguard)
)

type ResponseQuotes []ResponseQuote
Expand Down
4 changes: 2 additions & 2 deletions internal/quote/coingecko/coingecko_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

c "github.com/achannarasappa/ticker/internal/common"
. "github.com/achannarasappa/ticker/internal/quote/coingecko"
c "github.com/achannarasappa/ticker/v4/internal/common"
. "github.com/achannarasappa/ticker/v4/internal/quote/coingecko"
g "github.com/onsi/gomega/gstruct"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/quote/quote.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package quote

import (
c "github.com/achannarasappa/ticker/internal/common"
quoteCoingecko "github.com/achannarasappa/ticker/internal/quote/coingecko"
quoteYahoo "github.com/achannarasappa/ticker/internal/quote/yahoo"
c "github.com/achannarasappa/ticker/v4/internal/common"
quoteCoingecko "github.com/achannarasappa/ticker/v4/internal/quote/coingecko"

Check failure on line 5 in internal/quote/quote.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/achannarasappa/ticker/v4/internal/quote/coingecko' is not allowed from list 'Main' (depguard)
quoteYahoo "github.com/achannarasappa/ticker/v4/internal/quote/yahoo"

Check failure on line 6 in internal/quote/quote.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/achannarasappa/ticker/v4/internal/quote/yahoo' is not allowed from list 'Main' (depguard)
"github.com/go-resty/resty/v2"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/quote/quote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package quote_test
import (
"net/http"

c "github.com/achannarasappa/ticker/internal/common"
. "github.com/achannarasappa/ticker/internal/quote"
. "github.com/achannarasappa/ticker/test/http"
c "github.com/achannarasappa/ticker/v4/internal/common"
. "github.com/achannarasappa/ticker/v4/internal/quote"
. "github.com/achannarasappa/ticker/v4/test/http"
"github.com/jarcoal/httpmock"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion internal/quote/yahoo/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

c "github.com/achannarasappa/ticker/internal/quote/yahoo/client"
c "github.com/achannarasappa/ticker/v4/internal/quote/yahoo/client"
)

var _ = Describe("Client", func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/quote/yahoo/currency.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import (
"strings"

c "github.com/achannarasappa/ticker/internal/common"
c "github.com/achannarasappa/ticker/v4/internal/common"

Check failure on line 6 in internal/quote/yahoo/currency.go

View workflow job for this annotation

GitHub Actions / lint

import 'github.com/achannarasappa/ticker/v4/internal/common' is not allowed from list 'Main' (depguard)
"github.com/go-resty/resty/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/quote/yahoo/quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package yahoo
import (
"strings"

c "github.com/achannarasappa/ticker/internal/common"
c "github.com/achannarasappa/ticker/v4/internal/common"
"github.com/go-resty/resty/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/quote/yahoo/quote_contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package yahoo_test
import (
"fmt"

yahooClient "github.com/achannarasappa/ticker/internal/quote/yahoo/client"
yahooClient "github.com/achannarasappa/ticker/v4/internal/quote/yahoo/client"
"github.com/go-resty/resty/v2"

"github.com/xeipuuv/gojsonschema"
Expand Down
6 changes: 3 additions & 3 deletions internal/quote/yahoo/yahoo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

c "github.com/achannarasappa/ticker/internal/common"
. "github.com/achannarasappa/ticker/internal/quote/yahoo"
. "github.com/achannarasappa/ticker/test/http"
c "github.com/achannarasappa/ticker/v4/internal/common"
. "github.com/achannarasappa/ticker/v4/internal/quote/yahoo"
. "github.com/achannarasappa/ticker/v4/test/http"
g "github.com/onsi/gomega/gstruct"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/sorter/sorter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sorter
import (
"sort"

c "github.com/achannarasappa/ticker/internal/common"
c "github.com/achannarasappa/ticker/v4/internal/common"
)

// Sorter represents a function that sorts quotes
Expand Down
4 changes: 2 additions & 2 deletions internal/sorter/sorter_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package sorter_test

import (
c "github.com/achannarasappa/ticker/internal/common"
. "github.com/achannarasappa/ticker/internal/sorter"
c "github.com/achannarasappa/ticker/v4/internal/common"
. "github.com/achannarasappa/ticker/v4/internal/sorter"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
6 changes: 3 additions & 3 deletions internal/ui/component/summary/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"strings"

grid "github.com/achannarasappa/term-grid"
"github.com/achannarasappa/ticker/internal/asset"
c "github.com/achannarasappa/ticker/internal/common"
"github.com/achannarasappa/ticker/v4/internal/asset"
c "github.com/achannarasappa/ticker/v4/internal/common"

u "github.com/achannarasappa/ticker/internal/ui/util"
u "github.com/achannarasappa/ticker/v4/internal/ui/util"
"github.com/muesli/reflow/ansi"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/ui/component/summary/summary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package summary_test
import (
"strings"

"github.com/achannarasappa/ticker/internal/asset"
c "github.com/achannarasappa/ticker/internal/common"
. "github.com/achannarasappa/ticker/internal/ui/component/summary"
"github.com/achannarasappa/ticker/v4/internal/asset"
c "github.com/achannarasappa/ticker/v4/internal/common"
. "github.com/achannarasappa/ticker/v4/internal/ui/component/summary"

"github.com/acarl005/stripansi"
. "github.com/onsi/ginkgo/v2"
Expand Down
6 changes: 3 additions & 3 deletions internal/ui/component/watchlist/watchlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"strconv"
"strings"

c "github.com/achannarasappa/ticker/internal/common"
s "github.com/achannarasappa/ticker/internal/sorter"
u "github.com/achannarasappa/ticker/internal/ui/util"
c "github.com/achannarasappa/ticker/v4/internal/common"
s "github.com/achannarasappa/ticker/v4/internal/sorter"
u "github.com/achannarasappa/ticker/v4/internal/ui/util"

grid "github.com/achannarasappa/term-grid"
)
Expand Down Expand Up @@ -384,14 +384,14 @@
return textDayRange
}

func textVolumeMarketCap(asset c.Asset, styles c.Styles) string {

Check warning on line 387 in internal/ui/component/watchlist/watchlist.go

View workflow job for this annotation

GitHub Actions / lint

unused-parameter: parameter 'styles' seems to be unused, consider removing or renaming it as _ (revive)

return u.ConvertFloatToString(asset.QuoteExtended.MarketCap, true) +
"\n" +
u.ConvertFloatToString(asset.QuoteExtended.Volume, true)
}

func textVolumeMarketCapLabels(asset c.Asset, styles c.Styles) string {

Check warning on line 394 in internal/ui/component/watchlist/watchlist.go

View workflow job for this annotation

GitHub Actions / lint

unused-parameter: parameter 'asset' seems to be unused, consider removing or renaming it as _ (revive)

return styles.TextLabel("Market Cap:") +
"\n" +
Expand Down
Loading
Loading