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

@@ -5,6 +5,7 @@ import (
"net/url"
"reflect"
"strconv"
"strings"
"github.com/thrasher-/gocryptotrader/common"
)
@@ -35,7 +36,7 @@ func StructValsToURLVals(v interface{}) (url.Values, error) {
if structType.Field(i).Tag != "" {
jsonTag := structType.Field(i).Tag.Get("json")
if jsonTag != "" {
split := common.SplitStrings(jsonTag, ",")
split := strings.Split(jsonTag, ",")
outgoingTag = split[0]
}
}