Décodage de JSON int en chaîne

J'ai cette simple chaîne JSON où je veux user_id être converti en chaîne lors json.Unmarshal:

{"user_id": 344, "user_name": "shiki"}

J'ai essayé ceci:

type User struct {
  Id       string `json:"user_id,int"`
  Username string `json:"user_name"`
}

func main() {
  input := `{"user_id": 344, "user_name": "shiki"}`
  user := User{}
  err := json.Unmarshal([]byte(input), &user)
  if err != nil {
    panic(err)
  }

  fmt.Println(user)
}

Mais je viens d'obtenir cette erreur:

panic: json: cannot unmarshal number into Go value of type string

Aire de jeux lien: http://play.golang.org/p/mAhKYiPDt0

source d'informationauteur Shiki