From fd834aed2b4b5788d3b99a29215930353454451e Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 27 Sep 2019 14:38:55 +0300 Subject: [PATCH] Add Uint64 helper --- command.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/command.go b/command.go index 1378370e..fac6113c 100644 --- a/command.go +++ b/command.go @@ -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) }