mirror of
https://github.com/miguelmota/cointop
synced 2024-11-10 13:10:26 +00:00
add build badge
Former-commit-id: 643d4deab2e102f606fb0c501af257b3772dbae7 [formerly 643d4deab2e102f606fb0c501af257b3772dbae7 [formerly bb0a6ab017ef8d9cb7ca5353d75708713cbc72bf [formerly 6c112ce433
]]]
Former-commit-id: 58044fcf375dc6ead3e26f4dc878e7e98ad111b0
Former-commit-id: 11ff94a0358708bdce33506f3b64ed9b9f6e0207 [formerly ecf02c0798d8081deb8c2d7f353820e0842de20b]
Former-commit-id: 649f4925363be4d5cb7e6630c5dfb9fac9e80a0a
This commit is contained in:
parent
8ec75323e7
commit
1592808f65
@ -1,7 +1,9 @@
|
|||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- "1.9.x"
|
- "1.9.x"
|
||||||
- "1.10.x"
|
- "1.10.x"
|
||||||
- "master"
|
- "master"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
|
2
Makefile
2
Makefile
@ -15,4 +15,4 @@ clean:
|
|||||||
rm -f bin/cointop32
|
rm -f bin/cointop32
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@echo "no tests"
|
go test ./...
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
> Coin tracking for hackers
|
> Coin tracking for hackers
|
||||||
|
|
||||||
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/miguelmota/cointop/master/LICENSE.md) [![Go Report Card](https://goreportcard.com/badge/github.com/miguelmota/cointop?)](https://goreportcard.com/report/github.com/miguelmota/cointop) [![GoDoc](https://godoc.org/github.com/miguelmota/cointop?status.svg)](https://godoc.org/github.com/miguelmota/cointop)
|
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/miguelmota/cointop/master/LICENSE.md) [![Build Status](https://travis-ci.org/miguelmota/cointop.svg?branch=master)](https://travis-ci.org/miguelmota/cointop) [![Go Report Card](https://goreportcard.com/badge/github.com/miguelmota/cointop?)](https://goreportcard.com/report/github.com/miguelmota/cointop) [![GoDoc](https://godoc.org/github.com/miguelmota/cointop?status.svg)](https://godoc.org/github.com/miguelmota/cointop)
|
||||||
|
|
||||||
<img src="./assets/screenshot-001.gif" width="880" />
|
<img src="./assets/screenshot-001.gif" width="880" />
|
||||||
|
|
||||||
|
7
cointop/cointop_test.go
Normal file
7
cointop/cointop_test.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package cointop
|
||||||
|
|
||||||
|
import "testing"
|
||||||
|
|
||||||
|
func TestRun(t *testing.T) {
|
||||||
|
// Run()
|
||||||
|
}
|
@ -119,12 +119,7 @@ func (ct *Cointop) updateCoins() error {
|
|||||||
for k := range ct.allcoins {
|
for k := range ct.allcoins {
|
||||||
c := ct.allcoins[k]
|
c := ct.allcoins[k]
|
||||||
if c.ID == cm.ID {
|
if c.ID == cm.ID {
|
||||||
/*
|
// TODO: improve this
|
||||||
if c.ID == "ethereum" {
|
|
||||||
// test
|
|
||||||
cm.PriceUSD = float64(time.Now().Unix())
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
c.ID = cm.ID
|
c.ID = cm.ID
|
||||||
c.Name = cm.Name
|
c.Name = cm.Name
|
||||||
c.Symbol = cm.Symbol
|
c.Symbol = cm.Symbol
|
||||||
|
Loading…
Reference in New Issue
Block a user