Skip to content

Commit

Permalink
Upgrade Go version to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytaxii committed May 21, 2024
1 parent cf938fe commit 1414237
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Hydrogen Fluoride
Copyright (c) 2024 crazytaxii

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/crazytaxii/gomeng

go 1.16
go 1.21
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"
"time"
Expand Down Expand Up @@ -43,7 +43,7 @@ func (c *Client) doPost(param map[string]interface{}, endpoint string) (*Respons
}
defer resp.Body.Close()

body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 1414237

Please sign in to comment.