diff options
| author | mo khan <mo@mokhan.ca> | 2022-04-18 16:24:09 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2022-04-18 16:24:09 -0600 |
| commit | 4f46c0dbc1b77287aac69f3903e6f2e3487258ad (patch) | |
| tree | 1e5ad1c5512fd3ecab7d9b9c1c1fdfda06bafaed | |
| parent | 0e97e77d3e47baa408930c4f0305abf5e58e0e8a (diff) | |
fix: upcase ticker symbolmain
| -rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ func main() { fmt.Printf("Usage:\n\t%s <symbol>\n", os.Args[0]) return } - ticker := os.Args[1] + ticker := strings.ToUpper(os.Args[1]) response, _ := http.Get(fmt.Sprintf("https://finance.yahoo.com/quote/%s/", ticker)) doc, _ := html.Parse(response.Body) Visit(doc) |
