Closed king-11 closed 1 year ago
@sumitsaurabh927 is this something I should work on?
No, Please work on other issues. It's fine for the quickstart to call the main
function. Both of those approaches work either ways.
sure got it @unicodeveloper the idea was that if we have modular functions user can directly copy and plug them into their code
Code examples in the go quickstart directly use
main
function for all thecreate/update/trigger
workflows.It is probably better to make them modular as separate functions instead of
main
which are callable by other functions, for example the kotlin quickstart uses that form of modularization.