Skip to content

ogiwelcome/gostructmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-struct-mapper

This is package for mapper function between two struct

goal

I need to help for mapping between two struct like that

struct Hoge {
  A int `map:C`
  B int `map:D`
}

struct Piyo {
  C int
  D string
}

hogeInstance := Hoge{
  A: 1,
  B: 2,
}
piyoInstance := go-struct-mapper.mappingFrom(hogeInstance)

About

This is package for auto-generating mapper function between two struct

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages