parsing a wireguard configuration
Find a file
Vincent Batts 56fa2f2258
Initial commit
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-04-20 11:13:39 -04:00
go.mod Initial commit 2021-04-20 11:13:39 -04:00
LICENSE Initial commit 2021-04-20 11:13:39 -04:00
README.md Initial commit 2021-04-20 11:13:39 -04:00

wgconf

The wireguard configuration file is a botched up INI, that allows duplicate [Peer] sections. Because of this, none of the existing INI parsers handle it correctly (only results in the first or last section, depending on the parser).

Ideally, the lexer could just smoothly go between JSON/YAML.

References