Skip to content

Commit

Permalink
array index support
Browse files Browse the repository at this point in the history
  • Loading branch information
name5566 committed Jun 30, 2016
1 parent 51a5aa1 commit bf2abaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recordfile/recordfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func New(st interface{}) (*RecordFile, error) {
tag := f.Tag
if tag == "index" {
switch kind {
case reflect.Struct, reflect.Array, reflect.Slice, reflect.Map:
case reflect.Struct, reflect.Slice, reflect.Map:
return nil, fmt.Errorf("could not index %s field %v %v",
kind, i, f.Name)
}
Expand Down

0 comments on commit bf2abaf

Please sign in to comment.