From fd0a45e721d0d9b1dec003ac7af1fa18a0fd943f Mon Sep 17 00:00:00 2001 From: Matt Curtis Date: Tue, 5 Nov 2024 14:34:46 +0000 Subject: [PATCH] review: add comment --- go/config/decoding.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/config/decoding.go b/go/config/decoding.go index 1c536db566..b698ea5ee0 100644 --- a/go/config/decoding.go +++ b/go/config/decoding.go @@ -9,6 +9,7 @@ import ( ) // bigIntHookFunc is a mapstructure HookFunc to handle both ints and strings for big.Int +// viper doesn't handle big ints nicely out of the box (in yaml they might be provided as numbers or strings in various formats func bigIntHookFunc() mapstructure.DecodeHookFuncType { return func( f reflect.Type,