go1.20.5
GoThrough

syntax.ClassNL

const ClassNL = iota

syntax.DotNL

const DotNL = iota

syntax.EmptyBeginLine

const EmptyBeginLine = iota

syntax.EmptyBeginText

const EmptyBeginText = iota

syntax.EmptyEndLine

const EmptyEndLine = iota

syntax.EmptyEndText

const EmptyEndText = iota

syntax.EmptyNoWordBoundary

const EmptyNoWordBoundary = iota

syntax.EmptyWordBoundary

const EmptyWordBoundary = iota

syntax.ErrInternalError

// Unexpected error const ErrInternalError = "regexp/syntax: internal error"

syntax.ErrInvalidCharClass

// Parse errors const ErrInvalidCharClass = "invalid character class"

syntax.ErrInvalidCharRange

const ErrInvalidCharRange = "invalid character class range"

syntax.ErrInvalidEscape

const ErrInvalidEscape = "invalid escape sequence"

syntax.ErrInvalidNamedCapture

const ErrInvalidNamedCapture = "invalid named capture"

syntax.ErrInvalidPerlOp

const ErrInvalidPerlOp = "invalid or unsupported Perl syntax"

syntax.ErrInvalidRepeatOp

const ErrInvalidRepeatOp = "invalid nested repetition operator"

syntax.ErrInvalidRepeatSize

const ErrInvalidRepeatSize = "invalid repeat count"

syntax.ErrInvalidUTF8

const ErrInvalidUTF8 = "invalid UTF-8"

syntax.ErrLarge

const ErrLarge = "expression too large"

syntax.ErrMissingBracket

const ErrMissingBracket = "missing closing ]"

syntax.ErrMissingParen

const ErrMissingParen = "missing closing )"

syntax.ErrMissingRepeatArgument

const ErrMissingRepeatArgument = "missing argument to repetition operator"

syntax.ErrNestingDepth

const ErrNestingDepth = "expression nests too deeply"

syntax.ErrTrailingBackslash

const ErrTrailingBackslash = "trailing backslash at end of expression"

syntax.ErrUnexpectedParen

const ErrUnexpectedParen = "unexpected )"

syntax.FoldCase

const FoldCase = iota

syntax.InstAlt

const InstAlt = iota

syntax.InstAltMatch

const InstAltMatch = iota

syntax.InstCapture

const InstCapture = iota

syntax.InstEmptyWidth

const InstEmptyWidth = iota

syntax.InstFail

const InstFail = iota

syntax.InstMatch

const InstMatch = iota

syntax.InstNop

const InstNop = iota