Drawn the skeleton code for the structure of the project
This commit is contained in:
10
utils/utils.go
Normal file
10
utils/utils.go
Normal file
@ -0,0 +1,10 @@
|
||||
package utils
|
||||
|
||||
import "log"
|
||||
|
||||
func Check(err error, msg string, args ...any) {
|
||||
if err != nil {
|
||||
log.Printf(msg, args...)
|
||||
panic(err)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user