You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: remotebranch.go
    path of file: ./repos/gitbatch/internal/git
    
    the code of the file until where you have to start completion: package git

import (
	"strings"

	"github.com/go-git/go-git/v5/plumbing"
	"github.com/go-git/go-git/v5/plumbing/storer"
)

// RemoteBranch is the wrapper of go-git's Reference struct. In addition to
// that, it also holds name of the remote branch
type RemoteBranch struct {
	Name      string
	Reference *plumbing.Reference
}

// search for the remote branches of the remote. It takes the go-g
    
func (rm *Remote) loadRemoteBranches(r *Repository) error {
	rm.Branches = make([]*RemoteBranch, 0)
	bs, err := remoteBranchesIter(r.Repo.Storer)
	if err != nil {
		return err
	}
	defer bs.Close()
	err = bs.ForEach(func(b *plumbing.Reference) error {
		if strings.Split(b.Name().Short(), "/")[0] == rm.Name {
			rm.Branches = append(rm.Branches, &RemoteBranch{
				Name:      b.Name().Short(),
				Reference: b,
			})
		}
		return nil
	})
	return err
}