func exampleValue(f *gen.Field) (interface{}, error) {
	a := Annotation{}
	if f.Annotations != nil && f.Annotations[a.Name()] != nil {
		if err := a.Decode(f.Annotations[a.Name()]); err != nil {
			return nil, err
		}
		if a.Example != nil {
			return a.Example, nil
		}
	}
	if f.IsEnum() {
		return f.EnumValues()[0], nil
	}
	return nil, nil
}
// exampleValue returns the user defined example value for this field.
exampleValue returns the user defined example value for this field.
// exampleValue returns the user defined example value for this field .
func exampleValue(f *gen.Field) (interface{}, error) {
	a := Annotation{}
	if f.Annotations != nil && f.Annotations[a.Name()] != nil {
		if err := a.Decode(f.Annotations[a.Name()]); err != nil {
			return nil, err
		}
		if a.Example != nil {
			return a.Example, nil
		}
	}
	if f.IsEnum() {
		return f.EnumValues()[0], nil
	}
	return nil, nil
}
func exampleValue ( f * gen . Field ) ( interface { } , error ) { a := Annotation { } if f . Annotations != nil && f . Annotations [ a . Name ( ) ] != nil { if err := a . Decode ( f . Annotations [ a . Name ( ) ] ) ; err != nil { return nil , err } if a . Example != nil { return a . Example , nil } } if f . IsEnum ( ) { return f . EnumValues ( ) [ 0 ] , nil } return nil , nil }
exampleValue returns the user defined example value for this field.
exampleValue returns the user defined example value for this field .