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: describe.go
    path of file: ./repos/kubeless/cmd/kubeless/function
    
    the code of the file until where you have to start completion: /*
Copyright (c) 2016-2017 Bitnami

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    h
    
func print(f kubelessApi.Function, name, output string) error {
	switch output {
	case "":
		table := uitable.New()
		table.MaxColWidth = 80
		table.Wrap = true
		label, err := json.Marshal(f.ObjectMeta.Labels)
		if err != nil {
			return err
		}
		var env, memory string
		if len(f.Spec.Deployment.Spec.Template.Spec.Containers) != 0 {
			b, err := json.Marshal(f.Spec.Deployment.Spec.Template.Spec.Containers[0].Env)
			if err != nil {
				return err
			}
			env = string(b)
			memory = f.Spec.Deployment.Spec.Template.Spec.Containers[0].Resources.Requests.Memory().String()
		}

		table.AddRow("Name:", name)
		table.AddRow("Namespace:", f.ObjectMeta.Namespace)
		table.AddRow("Handler:", f.Spec.Handler)
		table.AddRow("Runtime:", f.Spec.Runtime)
		table.AddRow("Label:", string(label))
		table.AddRow("Envvar:", env)
		table.AddRow("Memory:", memory)
		table.AddRow("Dependencies:", f.Spec.Deps)
		fmt.Println(table)
	case "json":
		b, err := json.MarshalIndent(f, "", "  ")
		if err != nil {
			return err
		}
		fmt.Println(string(b))
	case "yaml":
		b, err := yaml.Marshal(f)
		if err != nil {
			return err
		}
		fmt.Println(string(b))
	default:
		fmt.Println("Wrong output format. Please use only json|yaml")
	}

	return nil
}