mirror of
https://github.com/arnaucube/blockchainIDsystem.git
synced 2026-02-07 02:56:43 +01:00
16 lines
185 B
Go
Executable File
16 lines
185 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"log"
|
|
"runtime"
|
|
)
|
|
|
|
func check(err error) {
|
|
if err != nil {
|
|
_, fn, line, _ := runtime.Caller(1)
|
|
log.Println(line)
|
|
log.Println(fn)
|
|
log.Println(err)
|
|
}
|
|
}
|