Skip to content

Commit

Permalink
Add Uint64 helper
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Sep 27, 2019
1 parent 4b6ad6a commit fd834ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ func (cmd *IntCmd) Result() (int64, error) {
return cmd.val, cmd.err
}

func (cmd *IntCmd) Uint64() (uint64, error) {
return uint64(cmd.val), cmd.err
}

func (cmd *IntCmd) String() string {
return cmdString(cmd, cmd.val)
}
Expand Down

0 comments on commit fd834ae

Please sign in to comment.