This loop is always repeating the last value, consider the following:
type unique struct {
id, nonce uint64
}
func (unique *unique) print() {
fmt.Println(unique.id)
}
func main() {
teste := []unique{unique{1, 2}, unique{3, 4...
asked by
24.06.2017 / 11:19