Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d7df39c481
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (21 sloc) 0.643 kb
package model
// FieldOnlyVisitor calls its function for every struct, array and slice field.
type FieldOnlyVisitor func(field *MetaData) error
func (self FieldOnlyVisitor) BeginNamedFields(*MetaData) error {
return nil
}
func (self FieldOnlyVisitor) NamedField(field *MetaData) error {
return self(field)
}
func (self FieldOnlyVisitor) EndNamedFields(*MetaData) error {
return nil
}
func (self FieldOnlyVisitor) BeginIndexedFields(*MetaData) error {
return nil
}
func (self FieldOnlyVisitor) IndexedField(field *MetaData) error {
return self(field)
}
func (self FieldOnlyVisitor) EndIndexedFields(*MetaData) error {
return nil
}
Jump to Line
Something went wrong with that request. Please try again.