s1, i1, s2, i2 := workpack[0][0].(string), int(workpack[0][1].(float64)), workpack[0][2].(string), int(workpack[0][3].(float64))
2017. október 11., szerda 9:02:17 UTC+2 időpontban Christian LeMoussel a következőt írta: > > Ok but how can I acces four values? > > I do this > segments = > []byte("[[\"19c87d4ddf59160406821ca102aa4f49846ecf5ac3d41d2007883834\", > 75, \"b54317cb538c6b3a5ae8b84f8b53c83652037038ad8ad6bef4c8b43a\", 101]]") > var workPack [][]interface{} > err = json.Unmarshal(segments, &workPack) > checkError(err) > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.