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: reg_windows.go
    path of file: ./repos/govcl/samples/imageviewer
    
    the code of the file until where you have to start completion: package main

import (
	"fmt"

	"strings"

	"os"

	"github.com/ying32/govcl/vcl"
	"github.com/ying32/govcl/vcl/win"
)

// windows下关联文件类型， 需要windows管理权限才能写入

func regAllFileType() {
	if !win.IsAdministrator() {
		fmt.Println("需要管理员权限")
		
    
func regFileType(reg *vcl.TRegistry, ext, description, menuTitle, executeFileName string, iconIndex int) {
	wStr := func(aPath, aKey, aVal string) {
		if reg.OpenKey(aPath, true) {
			reg.WriteString(aKey, aVal)
			reg.CloseKey()
		}
	}
	if strings.HasPrefix(ext, ".") {
		ext = ext[1:]
	}
	wStr("."+ext, "", ext+"_file")
	wStr(ext+"_file", "", description)
	wStr(ext+"_file\\DefaultIcon", "", fmt.Sprintf("%s,%d", executeFileName, iconIndex))
	wStr(ext+"_file\\shell\\open", "", menuTitle)
	wStr(ext+"_file\\shell\\open\\command", "", fmt.Sprintf("\"%s\" \"%%1\"", executeFileName))
}