func (s *ProjectBadgesService) ListProjectBadges(pid interface{}, opt *ListProjectBadgesOptions, options ...RequestOptionFunc) ([]*ProjectBadge, *Response, error) {
	project, err := parseID(pid)
	if err != nil {
		return nil, nil, err
	}
	u := fmt.Sprintf("projects/%s/badges", pathEscape(project))
	req, err := s.client.NewRequest(http.MethodGet, u, opt, options)
	if err != nil {
		return nil, nil, err
	}
	var pb []*ProjectBadge
	resp, err := s.client.Do(req, &pb)
	if err != nil {
		return nil, resp, err
	}
	return pb, resp, err
}
ListProjectBadges gets a list of a project's badges and its group badges.

GitLab API docs:
https://docs.gitlab.com/ee/api/project_badges.html#list-all-badges-of-a-project
package gitlab
import (
	"fmt"
	"net/http"
)
type ProjectBadge struct {
	ID               int    `json:"id"`
	LinkURL          string `json:"link_url"`
	ImageURL         string `json:"image_url"`
	RenderedLinkURL  string `json:"rendered_link_url"`
	RenderedImageURL string `json:"rendered_image_url"`
	Kind string `json:"kind"`
}
type ProjectBadgesService struct {
	client *Client
}
type ListProjectBadgesOptions ListOptions