Updates dependencies and ignores files

Updates dependencies by replacing ioutil with io.
Adds .tool-versions and web/yarn.lock to .gitignore.
This commit is contained in:
Ethan
2025-11-05 11:29:23 +08:00
parent 272e830707
commit fb1c093b68
2 changed files with 5 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ package market
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"math"
"net/http"
"strconv"
@@ -299,7 +299,7 @@ func getOpenInterestData(symbol string) (*OIData, error) {
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
@@ -332,7 +332,7 @@ func getFundingRate(symbol string) (float64, error) {
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return 0, err
}