Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: 商讯在线 <[email protected]>
  • Loading branch information
admpub committed Aug 23, 2014
1 parent 234d364 commit 468f8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tagfast.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GetTag(struct_name string, field_name string) (r TagFast, ok bool) {
return
}

//usage: Tag(typ.Name(),typ.Field(i).Name,typ.Field(i).Tag,"form")
//usage: Tag(m,i,"form")
func Tag(i_struct interface{}, field_no int, key string) (tag string) {
t := reflect.TypeOf(i_struct)
if t.Field(field_no).Tag == "" {
Expand Down

0 comments on commit 468f8d6

Please sign in to comment.