MCPcopy Create free account
hub / github.com/araddon/qlbridge / optionalByte

Function optionalByte

rel/sql.go:2026–2032  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

2024}
2025
2026func optionalByte(b []byte) byte {
2027 var out byte
2028 if len(b) > 0 {
2029 return b[0]
2030 }
2031 return out
2032}
2033
2034// EqualWith compare two with helpers for equality.
2035func EqualWith(l, r u.JsonHelper) bool {

Callers 1

columnFromPbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected