Add exit
This commit is contained in:
parent
8625fc2d5e
commit
5d73c57919
12
exit/exit.go
Normal file
12
exit/exit.go
Normal file
@ -0,0 +1,12 @@
|
||||
package exit
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func Exit() {
|
||||
defer fmt.Println("this will never get printed when using os.Exit()")
|
||||
|
||||
os.Exit(3)
|
||||
}
|
6
main.go
6
main.go
@ -35,7 +35,8 @@ package main
|
||||
// import "git.sangeeth.dev/gobyexample/sha"
|
||||
// import "git.sangeeth.dev/gobyexample/base64"
|
||||
// import "git.sangeeth.dev/gobyexample/files"
|
||||
import "git.sangeeth.dev/gobyexample/linefilter"
|
||||
// import "git.sangeeth.dev/gobyexample/linefilter"
|
||||
import "git.sangeeth.dev/gobyexample/exit"
|
||||
|
||||
func main() {
|
||||
// runes.Runes()
|
||||
@ -73,5 +74,6 @@ func main() {
|
||||
// sha.Sha()
|
||||
// base64.Base64()
|
||||
// files.Files()
|
||||
linefilter.LineFilter()
|
||||
// linefilter.LineFilter()
|
||||
exit.Exit()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user