MCPcopy
hub / github.com/segmentio/kafka-go / emptyToNullable

Function emptyToNullable

conn.go:155–160  ·  view source on GitHub ↗
(transactionalID string)

Source from the content-addressed store, hash-verified

153}
154
155func emptyToNullable(transactionalID string) (result *string) {
156 if transactionalID != "" {
157 result = &transactionalID
158 }
159 return result
160}
161
162// NewConnWith returns a new kafka connection configured with config.
163// The offset is initialized to FirstOffset.

Callers 3

NewConnWithFunction · 0.85

Calls

no outgoing calls