ECN>> vdf>> 返回
项目作者: Wakeful-Cloud

项目描述 :
Golang Binary Valve Data Format (VDF) implementation
高级语言: Go
项目地址: git://github.com/Wakeful-Cloud/vdf.git
创建时间: 2020-11-21T20:55:08Z
项目社区:https://github.com/Wakeful-Cloud/vdf

开源协议:MIT License

下载


VDF

Go Version 1.16
Status Shield
Test Status

Golang Binary Valve Data Format implementation

Install

  1. 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.