Upgrade go-toml to v2

According to the official
[migration guide](https://github.com/pelletier/go-toml/tree/v2#migrating-from-v1),
there are no breaking changes that could affect this project.

Main differences are:

* `Default struct fields order`: Struct fields stop being alphabetically
  sorted, unless their sorting is changed in the struct definitions. Shouldn't be
  relevant.
* `No indentation by default`: Also not relevant for newly generated
  configuration files. Doesn't break reading existing configuration
  files.
This commit is contained in:
Michael Manganiello
2023-06-15 19:46:30 -07:00
committed by Drew Weymouth
parent 7b15fe95e4
commit 57646cfbfd
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"os"
"github.com/google/uuid"
"github.com/pelletier/go-toml"
"github.com/pelletier/go-toml/v2"
)
type ServerConnection struct {