ABQQY AࣾͰಠࣗఆٛ ͨ͠$PEFܕ JOUFSDFQUPSͰ͍͍ײ͡ʹH31$ͷDPEFʹ
Ϛοϐϯά͞ΕΔ func (r *repo) GetUser(ctx context.Context, id uint64) (*User, user, err := r.db.GetContext(ctx, &user, "...", id) if err == sql.ErrNoRows { return nil, fail.Wrap( err, fail.WithCode(appx.NotFound), fail.WithIgnorable(), ) } if err != nil { return nil, fail.Wrap(err, fail.WithCode(appx.Internal)) } // snip. } 1FSTJTUFODFMBZFSʹIUUQH31$ͷࣝΛೖΕͨ͘ͳ͔ͬͨͨΊʢ࣮ଶH31$ͷADPEFT$PEFAͱಉҰʣ