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: names.go
    path of file: ./repos/encore/v2/internals/pkginfo
    
    the code of the file until where you have to start completion: package pkginfo

import (
	"fmt"
	"go/ast"
	"go/build"
	"go/token"
	"path"
	"sort"
    
func (r *fileNameResolver) resolveKnownPkgName(pkgPath paths.Pkg) (name string) {
	stdlib := paths.StdlibMod()
	encoreRuntime := r.l.runtimeModule.Path
	if stdlib.LexicallyContains(pkgPath) || encoreRuntime.LexicallyContains(pkgPath) {
		return path.Base(pkgPath.String())
	}
	return ""
}