(record *model.UserExample)
| 173 | } |
| 174 | |
| 175 | func convertUserExamplePb(record *model.UserExample) (*serverNameExampleV1.UserExample, error) { |
| 176 | value := &serverNameExampleV1.UserExample{} |
| 177 | err := copier.Copy(value, record) |
| 178 | if err != nil { |
| 179 | return nil, err |
| 180 | } |
| 181 | // Note: if copier.Copy cannot assign a value to a field, add it here |
| 182 | |
| 183 | return value, nil |
| 184 | } |