File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ behavior of standard Go accessors.
1212
1313The first two are amply taken care of by ` Reflect.Value.FieldByName ` , and the third is
1414addressed by ` Reflect.Value.FieldByNameFunc ` , but these don't quite understand struct
15- tags in the ways that are vital to most marshalers , and they are slow.
15+ tags in the ways that are vital to most marshallers , and they are slow.
1616
1717This reflectx package extends reflect to achieve these goals.
Original file line number Diff line number Diff line change 11// Package reflectx implements extensions to the standard reflect lib suitable
2- // for implementing marshaling and unmarshaling packages. The main Mapper type
2+ // for implementing marshalling and unmarshalling packages. The main Mapper type
33// allows for Go-compatible named attribute access, including accessing embedded
44// struct attributes and the ability to use functions and struct tags to
55// customize field names.
@@ -231,7 +231,7 @@ func mustBe(v kinder, expected reflect.Kind) {
231231 }
232232}
233233
234- // methodName is returns the caller of the function calling methodName
234+ // methodName returns the caller of the function calling methodName
235235func methodName () string {
236236 pc , _ , _ , _ := runtime .Caller (2 )
237237 f := runtime .FuncForPC (pc )
You can’t perform that action at this time.
0 commit comments