Golang Binary Valve Data Format implementation
go get -u github.com/wakeful-cloud/vdf
- Binary VDF support
- Fully unit tested
- No dependencies
- No support for non-binary VDF's
- Order of key-value's are not preserved (Steam doesn't care though)
-
vdf.Map
: structure use to represent a parsed/read VDF- Signature:
map[string]interface{}
- Signature:
-
vdf.ReadVdf
: function that reads bytes to avdf.Map
- Signature:
ReadVdf([]byte): (vdf.Map, error)
- Signature:
-
vdf.WriteVdf
: function that writes avdf.Map
to bytes- Signature:
WriteVdf(vdf.Map): ([]byte, error)
- Signature:
See example/main.go
Heavily based on Corecii's Steam Binary VSF TS Package.