expose max limits allowed for binary format event fields.

This commit is contained in:
fiatjaf 2023-12-22 18:18:44 -03:00
parent 2f514d5026
commit f1980e8b7a
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

10
binary/limits.go Normal file
View File

@ -0,0 +1,10 @@
package binary
import "math"
const (
MaxContentSize = math.MaxUint16
MaxKind = math.MaxUint16
MaxTagCount = math.MaxUint16
MaxTagSize = math.MaxUint16
)