# README
Examples
Here you can find a overview of examples on how to use demoinfocs-golang.
:information_source: Example code may not be production ready - specifically error handling and such is done in a simplified way and should not be used in critical systems as-is.
Example | Description |
---|---|
heatmap | Creating a heatmap from positions where players fired shots from |
nade-trajectories | Map overview with grenade trajectories |
voice-capture | Capture voice data from players |
entities | Using unhandled data from entities (Parser.ServerClasses() ) |
net-messages | Parsing and handling custom net-messages |
encrypted-net-messages | Parsing and handling encrypted net-messages (e.g. text chat in MM demos) |
print-events | Printing kills, scores & chat messages |
mocking | Using the fake package to write unit tests for your code |
web-assembly | Using the library from JavaScript (browser/node) with WebAssembly |
more examples | A collection of unpolished GitHub Gists based on past requests |
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
DemoPathFromArgs returns the value of the -demo command line flag.
GetMapMetadata fetches metadata for a specific map version from `https://radar-overviews.csgo.saiko.tech/<map>/<crc>/info.json`.
GetMapRadar fetches the radar image for a specific map version from `https://radar-overviews.csgo.saiko.tech/<map>/<crc>/radar.png`.
RedirectStdout redirects standard output to dev null.