MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / GetNetProto

Function GetNetProto

IceFireDB-SQLite/pkg/mysql/mysql/util.go:365–371  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

363}
364
365func GetNetProto(addr string) string {
366 if strings.Contains(addr, "/") {
367 return "unix"
368 } else {
369 return "tcp"
370 }
371}
372
373// ErrorEqual returns a boolean indicating whether err1 is equal to err2.
374func ErrorEqual(err1, err2 error) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected