code: func EncodePublishInfo(info map[string][]string) map[string]string {
  	result := map[string]string{}
  	for nm, publishs := range info {
  		if len(publishs) > 0 {
  			result[nm] = strings.Join(publishs, ",")
  		}
  	}
  	return result
  }
docs: // EncodePublishInfo encode publish info