Split up common.go, file path fixes and much more

This commit is contained in:
Adrian Gallagher
2019-06-04 17:04:18 +10:00
parent 8c62316e82
commit e965e54e09
74 changed files with 524 additions and 617 deletions

View File

@@ -2,8 +2,6 @@ package assets
import (
"strings"
"github.com/thrasher-/gocryptotrader/common"
)
// AssetType stores the asset type
@@ -93,7 +91,7 @@ func IsValid(input AssetType) bool {
// New takes an input of asset types as string and returns an AssetTypes
// array
func New(input string) AssetTypes {
if !common.StringContains(input, ",") {
if !strings.Contains(input, ",") {
if IsValid(AssetType(input)) {
return AssetTypes{
AssetType(input),