Skip to content

tiny-lib/copieroptpb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copieroptpb

copier option for protobuf wrappervalues

import "github.com/tiny-lib/copieroptpb"
....
user:=&User{}
if err := copier.CopyWithOption(req.User, user, copieroptpb.Option()); err != nil {
    return nil, err
}

supported types:

  • wrappervalue* to its related types
  • timestamppb to time.time