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: jiramarkdown.go
    path of file: ./repos/jira-cli/pkg/adf
    
    the code of the file until where you have to start completion: package adf

import (
	"fmt"
	"strings"
)

const (
	bgColorInfo    = "#deebff"
	bgColorNote    = "#eae6ff"
	bgColorError   = "#ffebe6"
	bgColorSuccess = "#e3fcef"
	bgColorWarning = "#fffae6"

	panelTypeInfo    = "info"
	panelTypeNote    = "note"
	panelTypeError   = "error"
	panelT
    
func nodePanelOpenHook(n Connector) string {
	attrs := n.GetAttributes()

	var tag strings.Builder

	tag.WriteString("\n{panel")
	if attrs != nil {
		a := attrs.(map[string]interface{})
		if len(a) > 0 {
			tag.WriteString(":")
		}
		for k, v := range a {
			if k == "panelType" {
				switch v {
				case panelTypeInfo:
					tag.WriteString(fmt.Sprintf("bgColor=%s", bgColorInfo))
				case panelTypeNote:
					tag.WriteString(fmt.Sprintf("bgColor=%s", bgColorNote))
				case panelTypeError:
					tag.WriteString(fmt.Sprintf("bgColor=%s", bgColorError))
				case panelTypeSuccess:
					tag.WriteString(fmt.Sprintf("bgColor=%s", bgColorSuccess))
				case panelTypeWarning:
					tag.WriteString(fmt.Sprintf("bgColor=%s", bgColorWarning))
				}
			} else {
				tag.WriteString(fmt.Sprintf("|%s=%s", k, v))
			}
		}
	}
	tag.WriteString("}\n")

	return tag.String()
}