From: Sergey Matveev Date: Thu, 12 Dec 2024 09:55:28 +0000 (+0300) Subject: Non exportable const X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=18bd2f807517a849844ee7836def7fb491304ae6a2a92387bf3e55e49bfb2cb1;p=keks.git Non exportable const --- diff --git a/gyac/dec.go b/gyac/dec.go index de994d6..6bf9591 100644 --- a/gyac/dec.go +++ b/gyac/dec.go @@ -22,7 +22,7 @@ import ( "go.cypherpunks.su/yac/gyac/types" ) -const ParseMaxRecursionDepth = 1 << 10 +const parseMaxRecursionDepth = 1 << 10 var ( ErrMapBadKey = errors.New("map bad key") @@ -59,7 +59,7 @@ func decode( allowContainers, expectEOC bool, recursionDepth int, ) (item Item, tail []byte, err error) { - if recursionDepth > ParseMaxRecursionDepth { + if recursionDepth > parseMaxRecursionDepth { err = errors.New("deep recursion") return }