1package equipment 2 3import "unicode/utf8" 4 5const renderURLMaxRunes = 1024 6 7func assertRenderURLLen(value string) { 8 if utf8.RuneCountInString(value) > renderURLMaxRunes { 9 panic("url exceeds max runes") 10 } 11}