func yaml_parser_set_input(parser *yaml_parser_t, handler yaml_read_handler_t) {
	if parser.read_handler != nil {
		panic("input already set")
	}
	parser.read_handler = handler
}
/*
Set a generic input.
package candiedyaml
import (
	"io"
)
func yaml_parser_initialize(parser *yaml_parser_t) bool {
	*parser = yaml_parser_t{
		raw_buffer: make([]byte, 0, INPUT_RAW_BUFFER_SIZE),
		buffer:     make([]byte, 0, INPUT_BUFFER_SIZE),
	}
	return true
}
func yaml_parser_delete(parser *yaml_parser_t) {
	*parser = yaml_parser_t{}
}
func yaml_string_read_handler(parser *yaml_parser_t, buffer []byte) (int, error) {
	if parser.input_pos == len(parser.input) {
		return 0, io.EOF
	}
	n := copy(buffer, parser.input[parser.input_pos:])
	parser.input_pos += n
	return n, nil
}
func yaml_file_read_handler(parser *yaml_parser_t, buffer []byte) (int, error) {
	return parser.input_reader.Read(buffer)
}
func yaml_parser_set_input_string(parser *yaml_parser_t, input []byte) {
	if parser.read_handler != nil {
		panic("input already set")
	}
	parser.read_handler = yaml_string_read_handler
	parser.input = input
	parser.input_pos = 0
}
func yaml_parser_set_input_reader(parser *yaml_parser_t, reader io.Reader) {
	if parser.read_handler != nil {
		panic("input already set")
	}
	parser.read_handler = yaml_file_read_handler
	parser.input_reader = reader
}