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: MainFormImpl.go
    path of file: ./repos/govcl/samples/redisViewer
    
    the code of the file until where you have to start completion: // 由res2go自动生成。
// 在这里写你的事件。

package main

import (
	"fmt"
	"strconv"
	"strings"

	"github.com/gomodule/redigo/redis"

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

type TConn struct {
	Sheet *vcl.TTabSheet
	Conn  redis.Conn
	Node 
    
func (f *TMainForm) syncGetDataBases(conn redis.Conn, node *vcl.TTreeNode) {
	//CONFIG GET databases
	rep, err := redis.StringMap(conn.Do("CONFIG", "GET", "databases"))
	if err == nil {
		fmt.Println(rep["databases"])
		if val, ok := rep["databases"]; ok {
			if count, err := strconv.Atoi(val); err == nil {
				vcl.ThreadSync(func() {
					for i := 0; i < count; i++ {
						f.TvConns.Items().AddChild(node, fmt.Sprintf("db%d", i))
					}
					node.SetExpanded(true)
				})
			}
		}
	} else {
		fmt.Println(err)
	}
}