From 18c23e7d1ed33db1edce6a84142bb66c51d8b79f Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Thu, 23 Aug 2018 06:33:54 +0300 Subject: [PATCH] hero support for the new uint64 Former-commit-id: 0cd72427302afd50a18c88443f871db393429bfa --- hero/param.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hero/param.go b/hero/param.go index 9a9f028f..278e507a 100644 --- a/hero/param.go +++ b/hero/param.go @@ -44,6 +44,13 @@ func resolveParam(currentParamIndex int, typ reflect.Type) (reflect.Value, bool) entry, _ := ctx.Params().GetEntryAt(currentParamIndex) v, _ := entry.Int64Default(0) + return v + } + case reflect.Uint64: + fn = func(ctx context.Context) uint64 { + entry, _ := ctx.Params().GetEntryAt(currentParamIndex) + v, _ := entry.Uint64Default(0) + return v } case reflect.Bool: