forked from botlabs-gg/yagpdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdcommands/ce: use different yaml library (botlabs-gg#1686)
* mod: add github.com/goccy/go-yaml Add github.com/goccy/go-yaml as a new dependency for YAML parsing. The gopkg.in/yaml.v3 package hasn't received any new activity from the maintainers in the past two years; therefore, it is only sensible to use a more up-to-date version. Signed-off-by: Luca Zeuch <[email protected]> * stdcommands/ce: use new yaml library Use the newly introduced github.com/goccy/go-yaml library package to parse YAML and JSON in the customembed command. I had to change parsed to no longer be a pointer type, because there were some issues with Unmarshalling into said struct. As an added bonus, we can now throw either YAML and JSON at yaml.Unmarshal, because a) JSON is a subset of YAML and b) it just works. Signed-off-by: Luca Zeuch <[email protected]> --------- Signed-off-by: Luca Zeuch <[email protected]>
- Loading branch information
1 parent
62e0ba3
commit d5308e9
Showing
3 changed files
with
23 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters