package reflection import "git.nspix.com/golang/kos/util/reflect" func Setter(hacky any, variables map[string]any) (err error) { for k, v := range variables { if err = Set(hacky, k, v); err != nil { return err } } return } func Set(hacky any, field string, value interface{}) (err error) { return reflect.Set(hacky, field, value) }