implement sonic for json + remove some TODOs from readme + fix go version requirement (#5)
This commit is contained in:
parent
4a15dd0761
commit
e35bd2fe57
10 changed files with 70 additions and 47 deletions
|
@ -1,11 +1,12 @@
|
|||
package pinterest
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"govd/enums"
|
||||
"govd/models"
|
||||
"govd/util/parser"
|
||||
|
||||
"github.com/bytedance/sonic"
|
||||
)
|
||||
|
||||
func ParseVideoObject(videoObj *Videos) ([]*models.MediaFormat, error) {
|
||||
|
@ -48,7 +49,7 @@ func BuildPinRequestParams(pinID string) map[string]string {
|
|||
},
|
||||
}
|
||||
|
||||
jsonData, _ := json.Marshal(options)
|
||||
jsonData, _ := sonic.ConfigFastest.Marshal(options)
|
||||
return map[string]string{
|
||||
"data": string(jsonData),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue