MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / convertUserExample

Function convertUserExample

internal/service/userExample.go:188–197  ·  view source on GitHub ↗
(record *model.UserExample)

Source from the content-addressed store, hash-verified

186}
187
188func convertUserExample(record *model.UserExample) (*serverNameExampleV1.UserExample, error) {
189 value := &serverNameExampleV1.UserExample{}
190 err := copier.Copy(value, record)
191 if err != nil {
192 return nil, err
193 }
194 // Note: if copier.Copy cannot assign a value to a field, add it here
195
196 return value, nil
197}

Callers 3

Test_convertUserExampleFunction · 0.70
GetByIDMethod · 0.70
ListMethod · 0.70

Calls 1

CopyFunction · 0.92

Tested by 1

Test_convertUserExampleFunction · 0.56