This removes the requirement to call fmsg.Exit on every exit path, and enables direct use of the "log" package. However, fmsg.BeforeExit is still encouraged when possible to catch exit on suspended output. Signed-off-by: Ophestra <cat@gensokyo.uk>
10 lines
144 B
Go
10 lines
144 B
Go
package internal
|
|
|
|
import (
|
|
"os"
|
|
|
|
"git.gensokyo.uk/security/fortify/internal/fmsg"
|
|
)
|
|
|
|
func Exit(code int) { fmsg.BeforeExit(); os.Exit(code) }
|