Documentation ¶
Overview ¶
Package vdf implements a parser and serializer for Valve Data Format.
Index ¶
- Variables
- type KeyValues
- func (kv *KeyValues) AddSubKey(child *KeyValues)
- func (kv *KeyValues) FindKey(name string) *KeyValues
- func (kv *KeyValues) FirstSubKey() *KeyValues
- func (kv *KeyValues) FirstTrueSubKey() *KeyValues
- func (kv *KeyValues) FirstValue() *KeyValues
- func (kv *KeyValues) NextSubKey() *KeyValues
- func (kv *KeyValues) NextTrueSubKey() *KeyValues
- func (kv *KeyValues) NextValue() *KeyValues
- func (kv *KeyValues) ReadFrom(r io.Reader) (int64, error)
- func (kv *KeyValues) String() string
- func (kv *KeyValues) WriteTo(w io.Writer) (int64, error)
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Escape = strings.NewReplacer( "\\", "\\\\", "\n", "\\n", "\t", "\\t", "\v", "\\v", "\b", "\\b", "\r", "\\r", "\f", "\\f", "\a", "\\a", "\"", "\\\"", ) Unescape = strings.NewReplacer( "\\n", "\n", "\\t", "\t", "\\v", "\v", "\\b", "\b", "\\r", "\r", "\\f", "\f", "\\a", "\a", "\\\"", "\"", "\\'", "'", "\\?", "?", "\\\\", "\\", ) )
Functions ¶
This section is empty.
Types ¶
type KeyValues ¶
type KeyValues struct { Key string Value string Cond string HasValue bool // contains filtered or unexported fields }
func (*KeyValues) FirstSubKey ¶
func (*KeyValues) FirstTrueSubKey ¶
func (*KeyValues) FirstValue ¶
func (*KeyValues) NextSubKey ¶
func (*KeyValues) NextTrueSubKey ¶
type Token ¶
type Token uint8
Token is an enumeration of the types of syntax token in a VDF file.
Click to show internal directories.
Click to hide internal directories.