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

import (
	"fmt"
	"runtime"

	"github.com/jmorganca/ollama/app/assets"
	"github.com/jmorganca/ollama/app/tray/co
    
func NewTray() (commontray.OllamaTray, error) {
	extension := ".png"
	if runtime.GOOS == "windows" {
		extension = ".ico"
	}
	iconName := commontray.UpdateIconName + extension
	updateIcon, err := assets.GetIcon(iconName)
	if err != nil {
		return nil, fmt.Errorf("failed to load icon %s: %w", iconName, err)
	}
	iconName = commontray.IconName + extension
	icon, err := assets.GetIcon(iconName)
	if err != nil {
		return nil, fmt.Errorf("failed to load icon %s: %w", iconName, err)
	}

	tray, err := InitPlatformTray(icon, updateIcon)
	if err != nil {
		return nil, err
	}

	return tray, nil
}