This commit is contained in:
Sangeeth Sudheer 2024-05-03 17:06:05 +05:30
parent 8625fc2d5e
commit 5d73c57919
Signed by: x
GPG Key ID: F6D06ECE734C57D1
2 changed files with 16 additions and 2 deletions

12
exit/exit.go Normal file
View 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)
}

View File

@ -35,7 +35,8 @@ package main
// import "git.sangeeth.dev/gobyexample/sha" // import "git.sangeeth.dev/gobyexample/sha"
// import "git.sangeeth.dev/gobyexample/base64" // import "git.sangeeth.dev/gobyexample/base64"
// import "git.sangeeth.dev/gobyexample/files" // 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() { func main() {
// runes.Runes() // runes.Runes()
@ -73,5 +74,6 @@ func main() {
// sha.Sha() // sha.Sha()
// base64.Base64() // base64.Base64()
// files.Files() // files.Files()
linefilter.LineFilter() // linefilter.LineFilter()
exit.Exit()
} }