Add Uint64 helper

This commit is contained in:
Vladimir Mihailenco 2019-09-27 14:38:55 +03:00
parent 4b6ad6a953
commit fd834aed2b
1 changed files with 4 additions and 0 deletions

View File

@ -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)
}