mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-09-06 00:57:16 -04:00
Initial code commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//go:build !interactive
|
||||
|
||||
package back
|
||||
|
||||
import "os"
|
||||
|
||||
// Exit (hard) is meant to be used in non-interactive CLI implementations to exit the program after an operation.
|
||||
func Exit(code int) {
|
||||
os.Exit(code)
|
||||
}
|
||||
Reference in New Issue
Block a user