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:
12
wtf/utils.go
12
wtf/utils.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user