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

import (
	"fmt"

	"github.com/yaoapp/gou/model"
)

var elms = map[string]Column{
	"string":               {View: Render{Type: "label"}, Edit: Render{Type: "input"}},
	"char":                 {View: Render{Type: 
    
func GetDefaultColumns(name string) map[string]Column {
	mod := model.Select(name)
	cmap := mod.Columns
	columns := map[string]Column{}

	for name, col := range cmap {
		vcol, has := elms[col.Type]
		if !has {
			continue
		}

		label := col.Label
		if label == "" {
			label = col.Comment
		}
		if label == "" {
			label = name
		}

		vcol.Label = label
		if vcol.View.Props == nil {
			vcol.View.Props = map[string]interface{}{}
		}
		if vcol.Edit.Props == nil {
			vcol.Edit.Props = map[string]interface{}{}
		}
		vcol.View.Props["value"] = fmt.Sprintf(":%s", col.Name)
		vcol.Edit.Props["value"] = fmt.Sprintf(":%s", col.Name)

		// 枚举型
		if col.Type == "enum" {
			options := []map[string]string{}
			for _, opt := range col.Option {
				options = append(options, map[string]string{
					"label": opt,
					"value": opt,
				})
			}
			vcol.Edit.Props["options"] = options
		}

		columns[name] = vcol
		columns[label] = vcol
	}
	return columns
}