1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

WTF-400 Remove last of wtf.Config from Bittex widget

This commit is contained in:
Chris Cummer
2019-04-19 10:50:27 -07:00
parent a8e3602817
commit bc967be9e2
3 changed files with 39 additions and 13 deletions

View File

@@ -165,6 +165,18 @@ func SigilStr(len, pos int, view *tview.TextView) string {
return sigils
}
/* -------------------- Map Conversion -------------------- */
func MapToStrs(aMap map[string]interface{}) map[string]string {
results := make(map[string]string)
for key, val := range aMap {
results[key] = val.(string)
}
return results
}
/* -------------------- Slice Conversion -------------------- */
func ToInts(slice []interface{}) []int {