devfeel / mapper

A simple and easy go tools for auto mapper map to struct, struct to map, struct to struct, slice to slice, map to slice, map to json.
MIT License
390 stars 34 forks source link

Can support customized tag be used for structure conversion? // 能不能自定义转换用的tag #34

Closed XC-Zero closed 2 years ago

XC-Zero commented 2 years ago

现有结构体里有其他 tag 比如 bson form 或其他 自定义标签 ,能否自定义标签用于结构体转换呢?

devfeel commented 2 years ago

接受建议,将于下个版本实现,为了防止不必要的逻辑误导,考虑“显式”启用生效设置及相应的标签Flag设置