For now we all should write not exported array definitions
and exported functions to get read access to it.
What we need
const MyArray = [n]T = {...} or initMyArrayFunc()
What we have
// -----------------------------------
var ws = [256]bool{' ': true, '\t': true, '\n\: true, '\r\: true}
// IsWhitespace checks
func IsWhitespace(c byte) bool {
return whitespace[c]
}
// -----------------------------------var letter = [256]bool{
'A': true, 'B': true, 'C': true, 'D': true, 'E': true, 'F': true,
...
}
//
IsLetterASCII checks a start of an ASCII identifier
func
IsLetterASCII(c byte) bool {
return letter[c] // 'A'-'Z', 'a'-'z', '_'
}
and so on ...