MCPcopy
hub / github.com/grpc/grpc-go / strFromPointer

Function strFromPointer

channelz/internal/protoconv/util.go:23–28  ·  view source on GitHub ↗
(s *string)

Source from the content-addressed store, hash-verified

21package protoconv
22
23func strFromPointer(s *string) string {
24 if s == nil {
25 return ""
26 }
27 return *s
28}

Callers 2

channelToProtoFunction · 0.70
subChannelToProtoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected