Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
using json number (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfour authored and ahmdrz committed Jan 27, 2019
1 parent 0e27491 commit 994aa02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package goinsta

import (
"encoding/json"
"fmt"
"net/http"
)
Expand Down Expand Up @@ -66,9 +67,9 @@ func (e Error400) Error() string {
// Nametag is part of the account information.
type Nametag struct {
Mode int64 `json:"mode"`
Gradient interface{} `json:"gradient"`
Gradient json.Number `json:"gradient,Number"`
Emoji string `json:"emoji"`
SelfieSticker interface{} `json:"selfie_sticker"`
SelfieSticker json.Number `json:"selfie_sticker,Number"`
}

type friendResp struct {
Expand Down

0 comments on commit 994aa02

Please sign in to comment.