func extractOutgoingMetadata(ctx context.Context) metadata.MD {
	md, ok := metadata.FromOutgoingContext(ctx)
	if !ok {
		return metadata.Pairs() // empty md set
	}
	return md
}
// extractOutgoingMetadata extracts an outbound metadata from the client-side context.
//
// This function always returns a NiceMD wrapper of the metadata.MD, in case the context doesn't have metadata it returns
// a new empty NiceMD.
extractOutgoingMetadata extracts an outbound metadata from the client-side context.

This function always returns a NiceMD wrapper of the metadata.MD, in case the context doesn't have metadata it returns
a new empty NiceMD.
// extractOutgoingMetadata extracts an outbound metadata from the client - side context . // // This function always returns a NiceMD wrapper of the metadata . MD in case the context doesn ' t have metadata it returns // a new empty NiceMD .
func extractOutgoingMetadata(ctx context.Context) metadata.MD {
	md, ok := metadata.FromOutgoingContext(ctx)
	if !ok {
		return metadata.Pairs() 
	}
	return md
}
func extractOutgoingMetadata ( ctx context . Context ) metadata . MD { md , ok := metadata . FromOutgoingContext ( ctx ) if ! ok { return metadata . Pairs ( ) } return md }
extractOutgoingMetadata extracts an outbound metadata from the client-side context.
extractOutgoingMetadata extracts an outbound metadata from the client - side context .
// empty md set