Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LockGit/gochat
/ GetDb
Function
GetDb
db/db.go:44–50 ·
view source on GitHub ↗
(dbName string)
Source
from the content-addressed store, hash-verified
42
}
43
44
func
GetDb(dbName string) (db *gorm.DB) {
45
if
db, ok := dbMap[dbName]; ok {
46
return
db
47
}
else
{
48
return
nil
49
}
50
}
51
52
type
DbGoChat
struct
{
53
}
Callers
1
user.go
File · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected