tshadwell
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
13 ms·
- 61.▲
- 62.▲
- 63.▲
- 64.▲
- 65.▲
- 66.▲
- 67.▲
- 68.▲
- 69.▲
- 70.▲
- 71.▲
- 72.▲
- 73.▲
- 74.▲
- 75.▲
- 76.▲
- 77.▲
- 78.▲
- 79.▲
- 80.▲
- 81.▲
- 82.▲
- 83.▲
- 84.▲
- 85.▲
- 86.▲
- 87.▲
I've been using a pattern like this for my more complex initialisations: s, i := make([]T, 0, 6), 0 s = append(s, 1, 2, 3) //[1 2 3] fmt.Println(s[i:]) i += 3 s = append(s, 4, 5, 6) //[4 5 6] fmt.Println(s[i:]) i += - 88.▲
- 89.▲
- 90.▲
More ›