Use jsoniter

This commit is contained in:
Ben Sarmiento
2023-12-02 06:54:38 +01:00
parent 91ca1ebf88
commit 01fe4f0a09
7 changed files with 64 additions and 41 deletions

View File

@@ -2,7 +2,6 @@ package realdebrid
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"

View File

@@ -1,11 +1,14 @@
package realdebrid
import (
"encoding/json"
"math"
"strings"
jsoniter "github.com/json-iterator/go"
)
var json = jsoniter.ConfigCompatibleWithStandardLibrary
type FileJSON struct {
FileSize int `json:"filesize"`
Link string `json:"link"`