chore(deps): upgrade gomod denpendencies

This commit is contained in:
Fu Diwei
2025-02-12 16:48:03 +08:00
parent 041325d67e
commit 3bc708b910
5 changed files with 134 additions and 135 deletions

View File

@@ -150,7 +150,7 @@ func (c *GnameClient) sendRequestWithResult(path string, params map[string]any,
if err := json.Unmarshal(resp.Body(), &jsonResp); err != nil {
return fmt.Errorf("gname: failed to parse response: %w", err)
}
if err := maps.Decode(jsonResp, &result); err != nil {
if err := maps.Populate(jsonResp, &result); err != nil {
return fmt.Errorf("gname: failed to parse response: %w", err)
}