@@ -111,7 +111,6 @@ type Encoder interface {
111
111
// values using Ruby format, and would lead to recursive serialization of all the nested struct
112
112
// fields and slice/array within that struct as well (This was added in PR # 48)
113
113
//
114
- //
115
114
// Anonymous struct fields are usually encoded as if their inner exported
116
115
// fields were fields in the outer struct, subject to the standard Go
117
116
// visibility rules. An anonymous struct field with a name given in its URL
@@ -124,8 +123,6 @@ type Encoder interface {
124
123
//
125
124
// "user[name]=acme&user[addr][postcode]=1234&user[addr][city]=SFO"
126
125
//
127
- //
128
- //
129
126
// All other values are encoded using their default string representation.
130
127
//
131
128
// Multiple fields that encode to the same URL parameter name will be included
@@ -165,7 +162,6 @@ func reflectValue(values url.Values, val reflect.Value, scope string) error {
165
162
var scopes map [* reflect.Value ]string
166
163
167
164
typ := val .Type ()
168
-
169
165
for i := 0 ; i < typ .NumField (); i ++ {
170
166
sf := typ .Field (i )
171
167
if sf .PkgPath != "" && ! sf .Anonymous { // unexported
@@ -177,7 +173,6 @@ func reflectValue(values url.Values, val reflect.Value, scope string) error {
177
173
if tag == "-" {
178
174
continue
179
175
}
180
-
181
176
name , opts := parseTag (tag )
182
177
183
178
if name == "" {
@@ -346,7 +341,7 @@ func valueString(v reflect.Value, opts tagOptions, sf reflect.StructField) strin
346
341
}
347
342
348
343
// isEmptyValue checks if a value should be considered empty for the purposes
349
- // of omit ting fields with the "omitempty" option.
344
+ // of omitting fields with the "omitempty" option.
350
345
func isEmptyValue (v reflect.Value ) bool {
351
346
switch v .Kind () {
352
347
case reflect .Array , reflect .Map , reflect .Slice , reflect .String :
0 commit comments