()
| 46 | } |
| 47 | |
| 48 | func (si *StructIterator) isPublic() bool { |
| 49 | firstLetter := []rune(si.Key())[0] |
| 50 | if unicode.IsLower(firstLetter) && unicode.IsLetter(firstLetter) { |
| 51 | return false |
| 52 | } |
| 53 | return true |
| 54 | } |
| 55 | |
| 56 | // NewStructIterator creates returns a new iterator for a struct. |
| 57 | // This only works with struct types, not maps. It will only iterate |