vdf

package
v0.0.0-...-3cf66e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder implements the same interface as encoding/json for decoding vdf (Valve data format). It does so in an _extremely_ ugly way: "massaging" vdf into JSON and passing it to an encoding/json.Decoder. Oops!

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

NewDecoder returns a Decoder reading from r.

func (*Decoder) Decode

func (d *Decoder) Decode(v any) error

Decode reads the next VDF-encoded value from its input and stores it in the value pointed to by v using encoding/json tags.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL