How to get parent namespace?

Go SDK.

Given a DescribeWorkflowExecutionResponse, we can get parent namespace ID from DescribeWorkflowExecutionResponse.GetWorkflowExecutionInfo().GetParentNamespaceId(). But what I want is the namespace name.

Is there a way to get namespace name from namespace id?

Describe the namespace with this id to get name

resp, err := c.WorkflowService().DescribeNamespace(context.Background(), &workflowservice.DescribeNamespaceRequest{
		Id: resp.WorkflowExecutionInfo.ParentNamespaceId, // your id here...
})
if err != nil {
   log.Printf("Error: %v", err)
}
// now can get name via `resp.NamespaceInfo.Name`