Your Question

type KVStore map[string]interface{} db.updates(KVStore{"key": 1}) it report an error: "unsupported data",

The document you expected this should be explained

Expected answer

Comment From: a631807682

https://go.dev/ref/spec#Type_definitions

Use Alias declarations instead of Type definitions

type KVStore = map[string]interface{}