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: result.go
    path of file: ./repos/werf/pkg/true_git/ls_tree
    
    the code of the file until where you have to start completion: package ls_tree

import (
	"context"
	"crypto/sha256"
	"fmt"
	"path/filepath"
	"sort"

	"github.com/go-git/go-git/v5/plumbing"
	"github.com/go-git/go-git/v5/plumbing/filemode"
	"github.com/go-git/go-git/v5/plumbing/object"

	"github.com/werf/logboek"
	"github.com/werf/werf/pkg/git_repo/repo_h
    
func (r *Result) LsTreeEntry(relPath string) *LsTreeEntry {
	if relPath == "." {
		relPath = ""
	}

	var lsTreeEntry *LsTreeEntry
	_ = r.Walk(func(entry *LsTreeEntry) error {
		if filepath.ToSlash(entry.FullFilepath) == filepath.ToSlash(relPath) {
			lsTreeEntry = entry
		}

		return nil
	})

	if lsTreeEntry == nil {
		lsTreeEntry = &LsTreeEntry{
			FullFilepath: relPath,
			TreeEntry: object.TreeEntry{
				Name: relPath,
				Mode: filemode.Empty,
				Hash: plumbing.Hash{},
			},
		}
	}

	return lsTreeEntry
}