MCPcopy
hub / github.com/davyxu/tabtoy / mustFillCheck

Function mustFillCheck

v2/sheet_data.go:203–214  ·  view source on GitHub ↗
(fd *model.FieldDescriptor, raw string)

Source from the content-addressed store, hash-verified

201}
202
203func mustFillCheck(fd *model.FieldDescriptor, raw string) bool {
204 // 值重复检查
205 if fd.Meta.GetBool("MustFill") {
206
207 if raw == "" {
208 log.Errorf("%s, %s", i18n.String(i18n.DataSheet_MustFill), fd.String())
209 return false
210 }
211 }
212
213 return true
214}
215
216func newDataSheet(sheet *Sheet) *DataSheet {
217

Callers 1

mergeValuesFunction · 0.85

Calls 2

StringFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected