darccio / mergo

Mergo: merging Go structs and maps since 2013

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Determine whether to execute a custom transformer according to the types of SRC and DST

kooksee opened this issue · comments

I will define some models, and I will also use protobuf. Sometimes their field types are different, so I want to customize the transformer according to the types of SRC and DST

  1. For example, int64 and timestamppb Timestamp
  2. A simple idea

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

@kooksee I see the value of this idea. I'm marking it as candidate for v2.

Looks like #198 could be a good starting point for this in v2.