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

import (
	"github.com/davyxu/tabtoy/v2/i18n"
	"github.com/davyxu/tabtoy/v2/model"
	"strings"
)

type DataHeaderElement struct {
	FieldName string
	FieldType string
	FieldMeta string
	Comment   string
}

func checkElement(def
    
func checkElement(def *model.FieldDescriptor) int {
	// 普通表头合法性检查

	// 结构体单元格不能进行切分
	//if def.Type == model.FieldType_Struct && def.ListSpliter() != "" {
	//
	//	log.Errorf("%s '%s'", i18n.String(i18n.DataHeader_StructCellCannotSplit),
	//		def.Name)
	//	return DataSheetHeader_FieldMeta
	//}

	return -1
}