func (st *ScannerState) IsMode(mode int) bool {
	return st.mode == mode
}
IsMode checks if the scanner state is in a specific mode.
package pgscanner
const (
	NormalMode = iota
	ScanningMode
	ConfirmingMode
)
type ScannerState struct {
	buffer string
	mode   int
}
func (st *ScannerState) SetBuffer(buffer string) {
	st.buffer = buffer
}
func (st *ScannerState) CleanBuffer() {
	st.buffer = ""
}
func (st *ScannerState) SetMode(mode int) {
	st.mode = mode
}