Implement check function

This commit is contained in:
The Magician 2024-05-21 12:17:50 +01:00
parent b25cab0104
commit a6463b0b25
1 changed files with 7 additions and 0 deletions

View File

@ -2,8 +2,15 @@ package main
import ( import (
"fmt" "fmt"
"log"
) )
func check(err error) {
if err != nil {
log.Fatal(err)
}
}
func main() { func main() {
fmt.Println("Hello, world") fmt.Println("Hello, world")
} }