darccio/mergo

field name by struct tag

Closed this issue · 3 comments

What you think about adding ability to specify src name via struct tag?
For example i have dst like

struct Config {
  Name string `sometag:"fio"`
}

and have src like

map[string]interface{}{"fio": "XX XX XX"}

Thanks for opening a new issue. The team has been notified and will review it as soon as possible.
For urgent issues and priority support, visit https://xscode.com/imdario/mergo

gentle ping..
As i saw the code changes are not big and can be enabled by option for example

@vtolstov Unfortunately, I'm not able to deliver this kind of feature. Also, the current version is frozen for new features. I'll work in a new codebase from scratch at some point, so I'm taking note of this.