Skip to content

Golang Binary Valve Data Format (VDF) implementation

License

Notifications You must be signed in to change notification settings

Wakeful-Cloud/vdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VDF

Go Version 1.16 Status Shield Test Status

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{}
  • vdf.ReadVdf: function that reads bytes to a vdf.Map

    • Signature: ReadVdf([]byte): (vdf.Map, error)
  • vdf.WriteVdf: function that writes a vdf.Map to bytes

    • Signature: WriteVdf(vdf.Map): ([]byte, error)

Example

See example/main.go

Credit

Heavily based on Corecii's Steam Binary VSF TS Package.

About

Golang Binary Valve Data Format (VDF) implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages