MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / boolToInt

Function boolToInt

resolver/prefer.go:48–53  ·  view source on GitHub ↗
(x bool)

Source from the content-addressed store, hash-verified

46}
47
48func boolToInt(x bool) int {
49 if x {
50 return 0
51 }
52 return 1
53}
54
55type PreferIPv4 struct {
56 LookupNetIPer

Callers 2

LookupNetIPMethod · 0.85
LookupNetIPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected