package service import "fmt" type ( GitService struct{} Repository struct { Name string Title string Description string } ) func NewGitService() *GitService { return &GitService{} } func (g *GitService) ListRepositories() []*Repository { repos := make([]*Repository, 10) for i := range 10 { repos[i] = &Repository{ Name: fmt.Sprintf("repository-%d", i), Title: fmt.Sprintf("Repository %d", i), Description: fmt.Sprintf("This is a description for repository %d", i), } } return repos }