Skip to content

Commit

Permalink
Update olog.go
Browse files Browse the repository at this point in the history
  • Loading branch information
da0x authored Jul 14, 2021
1 parent 7635198 commit ab03c72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions olog.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ func infoOfAnyType(object interface{}) info {
o := reflect.TypeOf(object)
v := reflect.ValueOf(object)
switch o.Kind() {
case reflect.Uint:
return info{rows: [][]string{{fmt.Sprintf(v.Uint()}}}
case reflect.String:
return info{rows: [][]string{{v.String()}}}
case reflect.Struct:
Expand Down

0 comments on commit ab03c72

Please sign in to comment.