(addr string)
| 363 | } |
| 364 | |
| 365 | func 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. |
| 374 | func ErrorEqual(err1, err2 error) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected