()
| 296 | } |
| 297 | |
| 298 | func (self *goFieldModel) StructTag() string { |
| 299 | |
| 300 | var buf bytes.Buffer |
| 301 | |
| 302 | buf.WriteString("`") |
| 303 | |
| 304 | var userTagCount int |
| 305 | |
| 306 | self.Meta.VisitUserMeta(func(k string, v interface{}) bool { |
| 307 | |
| 308 | if userTagCount > 0 { |
| 309 | buf.WriteString(" ") |
| 310 | } |
| 311 | |
| 312 | buf.WriteString(fmt.Sprintf("%s:\"%s\"", k, v)) |
| 313 | |
| 314 | userTagCount++ |
| 315 | |
| 316 | return true |
| 317 | }) |
| 318 | |
| 319 | buf.WriteString("`") |
| 320 | |
| 321 | if userTagCount == 0 { |
| 322 | return "" |
| 323 | } |
| 324 | |
| 325 | return buf.String() |
| 326 | } |
| 327 | |
| 328 | func (self *goFieldModel) ElementTypeString() string { |
| 329 |
nothing calls this directly
no test coverage detected