(ctx ofctx.Context, in []byte)
| 48 | } |
| 49 | |
| 50 | func bar(ctx ofctx.Context, in []byte) (ofctx.Out, error) { |
| 51 | vars := ofctx.VarsFromCtx(ctx.GetNativeContext()) |
| 52 | response := map[string]string{ |
| 53 | string(in): vars["name"], |
| 54 | } |
| 55 | responseBytes, _ := json.Marshal(response) |
| 56 | return ctx.ReturnOnSuccess().WithData(responseBytes), nil |
| 57 | } |
nothing calls this directly
no outgoing calls
no test coverage detected