kubernetes/vendor/sigs.k8s.io/yaml/goyaml.v3/encode.go

type encoder

func newEncoder() *encoder {}

func newEncoderWithWriter(w io.Writer) *encoder {}

func (e *encoder) init() {}

func (e *encoder) finish() {}

func (e *encoder) destroy() {}

func (e *encoder) emit() {}

func (e *encoder) must(ok bool) {}

func (e *encoder) marshalDoc(tag string, in reflect.Value) {}

func (e *encoder) marshal(tag string, in reflect.Value) {}

func (e *encoder) mapv(tag string, in reflect.Value) {}

func (e *encoder) fieldByIndex(v reflect.Value, index []int) (field reflect.Value) {}

func (e *encoder) structv(tag string, in reflect.Value) {}

func (e *encoder) mappingv(tag string, f func()) {}

func (e *encoder) slicev(tag string, in reflect.Value) {}

// isBase60 returns whether s is in base 60 notation as defined in YAML 1.1.
//
// The base 60 float notation in YAML 1.1 is a terrible idea and is unsupported
// in YAML 1.2 and by this package, but these should be marshalled quoted for
// the time being for compatibility with other parsers.
func isBase60Float(s string) (result bool) {}

var base60float

// isOldBool returns whether s is bool notation as defined in YAML 1.1.
//
// We continue to force strings that YAML 1.1 would interpret as booleans to be
// rendered as quotes strings so that the marshalled output valid for YAML 1.1
// parsing.
func isOldBool(s string) (result bool) {}

func (e *encoder) stringv(tag string, in reflect.Value) {}

func (e *encoder) boolv(tag string, in reflect.Value) {}

func (e *encoder) intv(tag string, in reflect.Value) {}

func (e *encoder) uintv(tag string, in reflect.Value) {}

func (e *encoder) timev(tag string, in reflect.Value) {}

func (e *encoder) floatv(tag string, in reflect.Value) {}

func (e *encoder) nilv() {}

func (e *encoder) emitScalar(value, anchor, tag string, style yaml_scalar_style_t, head, line, foot, tail []byte) {}

func (e *encoder) nodev(in reflect.Value) {}

func (e *encoder) node(node *Node, tail string) {}