change logging

This commit is contained in:
filifa 2024-07-11 21:51:29 -05:00
parent 8b8ab675bd
commit 8c8f2b4f8f
1 changed files with 1 additions and 4 deletions

View File

@ -51,11 +51,8 @@ func expand(arr []any, idx int) []any {
func setValue(obj any, key string, value any) error {
var err error
switch v := obj.(type) {
case *FeedResponse:
log.Println("Formerly %v", (*v)[key])
(*v)[key] = value
case map[string]any:
log.Println("Formerly %v", v[key])
log.Println("Formerly", v[key])
v[key] = value
case []any:
idx, err := strconv.Atoi(key)