MCPcopy Index your code
hub / github.com/zalando/postgres-operator / Bool2Int

Function Bool2Int

pkg/util/util.go:344–349  ·  view source on GitHub ↗

Bool2Int converts bool to int

(flag bool)

Source from the content-addressed store, hash-verified

342
343// Bool2Int converts bool to int
344func Bool2Int(flag bool) int {
345 if flag {
346 return 1
347 }
348 return 0
349}
350
351// MaxInt32 : Return maximum of two integers provided via pointers. If one value
352// is not defined, return the other one. If both are not defined, result is also

Callers 1

RunMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected