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: function.go
    path of file: ./repos/bud/package/parser
    
    the code of the file until where you have to start completion: package parser

import (
	"go/ast"
	"strings"
)

// Function struct
type Function struct {
	pkg  *Package
	file *File
	node *ast.FuncDecl
}

// Package returns the package containing this function
func (fn *Function) Package() *Package {
	return fn.pkg
}

// File returns file containing this function

    
func (fn *Function) Results() (fields []*Result) {
	// Handle no results
	results := fn.node.Type.Results
	if results == nil {
		return
	}
	// List of fields
	of := len(results.List)
	for i, field := range results.List {
		if len(field.Names) == 0 {
			fields = append(fields, &Result{
				parent: fn,
				node:   field,
				n:      i + 1,
				of:     of,
			})
			continue
		}
		for j, name := range field.Names {
			fields = append(fields, &Result{
				parent: fn,
				name:   name.Name,
				node:   field,
				n:      i + j + 1,
				of:     of,
			})
		}
	}
	return fields
}