mapper icon indicating copy to clipboard operation
mapper copied to clipboard

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.

Results 7 mapper issues
Sort by recently updated
recently updated
newest added

找了好久,好用、简单的Mapper组件。测试使用完全没问题

type UserInfo struct { //Name string `gorm:"name"` //Sex int `gorm:"sex"` //Age int `gorm:"age"` //Phone string `gorm:"phone"` Name string //Sex int Age int Phone string PassWord string } type UserListOutPutDto struct...

I plan to make a new feature to support mapping between pointer and value example: ```go type A struct{ Age int `mapper:"age"` } type B struct{ Age *int `mapper:"age"` }...

proposal

type Info struct { Ext string `d:"aaa"` Name string `d:"123"` } type ShowInfo struct { Name string `d:"name"` Info CreateTime time.Time `d:"2020-01-02 03:04:01"` } func TestBindDefaultValue(t *testing.T) { var s...

like this: https://docs.automapper.org/en/latest/Custom-type-converters.html

IMapper是并发安全的吗,服务全局持有一个就可以,还是每次请求都需要NewMapper?

试用了一下,非常棒哟,是否有考虑如下模式? e.g. ``` m := mapper.NewMapper() result := m.mapper[T](&orgrigin_data) println(result) ... ```