field: fix doc typo
This commit is contained in:
parent
5e0c20298b
commit
548248a457
4
field.go
4
field.go
@ -57,8 +57,8 @@ func (f *Field) Field(name string) *Field {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Field returns the field from a nested struct. The boolean returns true if
|
// Field returns the field from a nested struct. The boolean returns true if
|
||||||
// the field was not found. It panics if the nested struct is not exported or
|
// the field was found. It panics if the nested struct is not exported or if
|
||||||
// if the field was not found.
|
// the field was not found.
|
||||||
func (f *Field) FieldOk(name string) (*Field, bool) {
|
func (f *Field) FieldOk(name string) (*Field, bool) {
|
||||||
v := strctVal(f.value.Interface())
|
v := strctVal(f.value.Interface())
|
||||||
t := v.Type()
|
t := v.Type()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user