-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
When I make something like this :
`
builder := dynamicstruct.NewBuilder()
row := make(map[string]interface{})
for k, v := range searchable {
builder.AddString(k)
row[k] = v
}
dataJsonStr, err := json.Marshal(data)
builder.AddString("Data")
row["Data"] = string(dataJsonStr)
builder.AddString("Key")
row["Key"] = key
builder.AddString("Timestamp")
time.Local, _ = time.LoadLocation("America/Sao_Paulo")
row["Timestamp"] = time.Now().String()
builder.AddInt("LogType")
row["LogType"] = logType
ds, _ := builder.Build()
dec, _ := ds.DecodeMap(row)
`
My APP crashes.
When I remove the builder.AddString(k) inside the for, everything works fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels