Source File
apic.go
Belonging Package
gopkg.in/yaml.v2
package yaml
import (
)
if .tokens_head > 0 && len(.tokens) == cap(.tokens) {
if .tokens_head != len(.tokens) {
copy(.tokens, .tokens[.tokens_head:])
}
.tokens = .tokens[:len(.tokens)-.tokens_head]
.tokens_head = 0
}
.tokens = append(.tokens, *)
if < 0 {
return
}
copy(.tokens[.tokens_head++1:], .tokens[.tokens_head+:])
.tokens[.tokens_head+] = *
}
func ( *yaml_parser_t) bool {
* = yaml_parser_t{
raw_buffer: make([]byte, 0, input_raw_buffer_size),
buffer: make([]byte, 0, input_buffer_size),
}
return true
}
func ( *yaml_parser_t) {
* = yaml_parser_t{}
}
func ( *yaml_parser_t, []byte) ( int, error) {
return .input_reader.Read()
}
func ( *yaml_parser_t, []byte) {
if .read_handler != nil {
panic("must set the input source only once")
}
.read_handler = yaml_string_read_handler
.input =
.input_pos = 0
}
func ( *yaml_parser_t, io.Reader) {
if .read_handler != nil {
panic("must set the input source only once")
}
.read_handler = yaml_reader_read_handler
.input_reader =
}
func ( *yaml_parser_t, yaml_encoding_t) {
if .encoding != yaml_ANY_ENCODING {
panic("must set the encoding only once")
}
.encoding =
}
func ( *yaml_emitter_t) {
* = yaml_emitter_t{
buffer: make([]byte, output_buffer_size),
raw_buffer: make([]byte, 0, output_raw_buffer_size),
states: make([]yaml_emitter_state_t, 0, initial_stack_size),
events: make([]yaml_event_t, 0, initial_queue_size),
best_width: -1,
}
}
func ( *yaml_emitter_t) {
* = yaml_emitter_t{}
}
func ( *yaml_emitter_t, []byte) error {
*.output_buffer = append(*.output_buffer, ...)
return nil
}
func ( *yaml_emitter_t, []byte) error {
, := .output_writer.Write()
return
}
func ( *yaml_emitter_t, *[]byte) {
if .write_handler != nil {
panic("must set the output target only once")
}
.write_handler = yaml_string_write_handler
.output_buffer =
}
func ( *yaml_emitter_t, io.Writer) {
if .write_handler != nil {
panic("must set the output target only once")
}
.write_handler = yaml_writer_write_handler
.output_writer =
}
func ( *yaml_emitter_t, yaml_encoding_t) {
if .encoding != yaml_ANY_ENCODING {
panic("must set the output encoding only once")
}
.encoding =
}
func ( *yaml_emitter_t, bool) {
.canonical =
}
func ( *yaml_emitter_t, int) {
if < 2 || > 9 {
= 2
}
.best_indent =
}
func ( *yaml_emitter_t, int) {
if < 0 {
= -1
}
.best_width =
}
func ( *yaml_emitter_t, bool) {
.unicode =
}
func ( *yaml_emitter_t, yaml_break_t) {
.line_break =
}
func ( *yaml_event_t, yaml_encoding_t) {
* = yaml_event_t{
typ: yaml_STREAM_START_EVENT,
encoding: ,
}
}
func ( *yaml_event_t) {
* = yaml_event_t{
typ: yaml_STREAM_END_EVENT,
}
}
func (
*yaml_event_t,
*yaml_version_directive_t,
[]yaml_tag_directive_t,
bool,
) {
* = yaml_event_t{
typ: yaml_DOCUMENT_START_EVENT,
version_directive: ,
tag_directives: ,
implicit: ,
}
}
func ( *yaml_event_t, bool) {
* = yaml_event_t{
typ: yaml_DOCUMENT_END_EVENT,
implicit: ,
}
}
func ( *yaml_event_t, , , []byte, , bool, yaml_scalar_style_t) bool {
* = yaml_event_t{
typ: yaml_SCALAR_EVENT,
anchor: ,
tag: ,
value: ,
implicit: ,
quoted_implicit: ,
style: yaml_style_t(),
}
return true
}
func ( *yaml_event_t, , []byte, bool, yaml_sequence_style_t) bool {
* = yaml_event_t{
typ: yaml_SEQUENCE_START_EVENT,
anchor: ,
tag: ,
implicit: ,
style: yaml_style_t(),
}
return true
}
func ( *yaml_event_t) bool {
* = yaml_event_t{
typ: yaml_SEQUENCE_END_EVENT,
}
return true
}
func ( *yaml_event_t, , []byte, bool, yaml_mapping_style_t) {
* = yaml_event_t{
typ: yaml_MAPPING_START_EVENT,
anchor: ,
tag: ,
implicit: ,
style: yaml_style_t(),
}
}
func ( *yaml_event_t) {
* = yaml_event_t{
typ: yaml_MAPPING_END_EVENT,
}
}
func ( *yaml_event_t) {
* = yaml_event_t{}
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |