9 lines
140 B
Go
9 lines
140 B
Go
|
package logger
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
// ExitWithError closes the current process with error code.
|
||
|
func ExitWithError(code *int) {
|
||
|
os.Exit(*code)
|
||
|
}
|