qor-example icon indicating copy to clipboard operation
qor-example copied to clipboard

Is run after compile not possible ?

Open MohitKS5 opened this issue 4 years ago • 1 comments

https://github.com/qor/qor-example/blob/debf77110d7a9eeea6835234a100e73fc699503a/main.go#L107 Here in the code it says either compile or serve. Was this done by choice or run after compile isn't possible at all ?

MohitKS5 avatar May 15 '20 07:05 MohitKS5

Ok I found the defer os.Exit(0) line in compile function. Why would anyone call os.Exit() ever in a program ??

MohitKS5 avatar May 15 '20 07:05 MohitKS5