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: commitLink.go
    path of file: ./repos/azure-sdk-for-go/eng/tools/generator/cmd/issue/link
    
    the code of the file until where you have to start completion: // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

package link

import (
	"context"
	"fmt"
	"regexp"
	"stri
    
func (l commitLink) Resolve() (ResolveResult, error) {
	hash, err := l.GetCommitHash()
	if err != nil {
		return nil, err
	}
	commit, _, err := l.client.Repositories.GetCommit(l.ctx, SpecOwner, SpecRepo, hash, nil)
	if err != nil {
		return nil, err
	}
	var filePaths []string
	linq.From(commit.Files).Select(func(item interface{}) interface{} {
		return item.(*github.CommitFile).GetFilename()
	}).ToSlice(&filePaths)
	readme, err := GetReadmePathFromChangedFiles(l.ctx, l.client, filePaths)
	if err != nil {
		return nil, fmt.Errorf("cannot resolve commit link '%s': %+v", l.GetReleaseLink(), err)
	}
	return getResult(readme), nil
}