Vdf
Golang Binary Valve Data Format (VDF) implementation
Install / Use
/learn @Wakeful-Cloud/VdfREADME
VDF
Golang Binary Valve Data Format implementation
Install
go get -u github.com/wakeful-cloud/vdf
Features
- Binary VDF support
- Fully unit tested
- No dependencies
Limitations
- No support for non-binary VDF's
- Order of key-value's are not preserved (Steam doesn't care though)
Docs
-
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.Mapto bytes- Signature:
WriteVdf(vdf.Map): ([]byte, error)
- Signature:
Example
See example/main.go
Credit
Heavily based on Corecii's Steam Binary VSF TS Package.
