// GetTopicMetadata retrieves and returns a topic's metadata.
GetTopicMetadata retrieves and returns a topic's metadata.
// GetTopicMetadata retrieves and returns a topic ' s metadata .
func (c *Client) GetTopicMetadata(topicName string) (TopicMetadata, error) {
	var meta TopicMetadata
	if topicName == "" {
		return meta, errRequired("topicName")
	}
	path := fmt.Sprintf(topicMetadataPath, topicName)
	resp, err := c.Do(http.MethodGet, path, "", nil)
	if err != nil {
		return meta, err
	}
	err = c.ReadJSON(resp, &meta)
	return meta, err
}
func ( c * Client ) GetTopicMetadata ( topicName string ) ( TopicMetadata , error ) { var meta TopicMetadata if topicName == " " { return meta , errRequired ( " " ) } path := fmt . Sprintf ( topicMetadataPath , topicName ) resp , err := c . Do ( http . MethodGet , path , " " , nil ) if err != nil { return meta , err } err = c . ReadJSON ( resp , & meta ) return meta , err }
GetTopicMetadata retrieves and returns a topic's metadata.
GetTopicMetadata retrieves and returns a topic ' s metadata .