Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 478 Bytes

custom_execute_func.md

File metadata and controls

13 lines (9 loc) · 478 Bytes

You can write your own version of the execute function.

Just copy the signature and replace the body as you like.

Remember to honor the "writeHeader" parameter. If a method receives a response writer, you should expect that method call WriteHeader and not do so in your execute implementation.

Your function has to have the following signature:

func execute(response http.ResponseWriter, request *http.Request, writeHeader bool, name string, code int, data any) {}