MCPcopy
hub / github.com/astaxie/build-web-application-with-golang / checkError

Function checkError

en/code/src/apps/ch.5.5/main.go:24–28  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

22const DB_PATH = "./foo.db"
23
24func checkError(err error) {
25 if err != nil {
26 panic(err)
27 }
28}
29func getTimeStamp() string {
30 return time.Now().Format("2006-01-02 15:04:05")
31}

Callers 13

insertUsingStructFunction · 0.70
insertUsingMapFunction · 0.70
getOneUserInfoFunction · 0.70
getAllUserInfoFunction · 0.70
updateUserinfoFunction · 0.70
updateUsingMapFunction · 0.70
getMapsFromSelectFunction · 0.70
groupbyFunction · 0.70
joinTablesFunction · 0.70
deleteWithUserinfoFunction · 0.70
deleteRowsFunction · 0.70
deleteAllUserinfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected