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

Method ArrayFieldCount

v3/model/datatab.go:24–34  ·  view source on GitHub ↗

重复列在表中的索引, 相对于重复列的数量

(field *HeaderField)

Source from the content-addressed store, hash-verified

22
23// 重复列在表中的索引, 相对于重复列的数量
24func (self *DataTable) ArrayFieldCount(field *HeaderField) (ret int) {
25
26 for _, hf := range self.Headers {
27 if hf.TypeInfo != nil && hf.TypeInfo.FieldName == field.TypeInfo.FieldName {
28
29 ret++
30 }
31 }
32
33 return
34}
35
36// 模板用,排除表头的数据索引
37func (self *DataTable) DataRowIndex() (ret []int) {

Callers 2

combineRepeatedCellFunction · 0.80
PreCheckFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected