mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-08-27 20:36:29 -04:00
11 lines
205 B
Go
11 lines
205 B
Go
//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)
|
|
}
|