Skip to content

Uses gjson and reflection to map from one dto to another dto

License

Notifications You must be signed in to change notification settings

rohithv-tw/dto-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dto-mapper

Uses gjson and reflect to map from one dto to another dto

How to use: Create struct with exposed fields and with tag map_from with tag value as gjson tag that can be used to parse from source struct.

Example:

Refer dto/source_dto.go and dto/target_dto.go Refer main.go for sample implementation.

Pending:

Add support for time.Time fields.

About

Uses gjson and reflection to map from one dto to another dto

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages