Skip to content

Commit fd834ae

Browse files
committed
Add Uint64 helper
1 parent 4b6ad6a commit fd834ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

command.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ func (cmd *IntCmd) Result() (int64, error) {
385385
return cmd.val, cmd.err
386386
}
387387

388+
func (cmd *IntCmd) Uint64() (uint64, error) {
389+
return uint64(cmd.val), cmd.err
390+
}
391+
388392
func (cmd *IntCmd) String() string {
389393
return cmdString(cmd, cmd.val)
390394
}

0 commit comments

Comments
 (0)