| 1 | //go:build go1.21 && !go1.22 |
| 2 | // +build go1.21,!go1.22 |
| 3 | |
| 4 | package generic |
| 5 | |
| 6 | import _ "embed" |
| 7 | |
| 8 | //go:embed go1_21_cmp.go.txt |
| 9 | var cmpSource string |
| 10 | |
| 11 | //go:embed go1_21_maps.go.txt |
| 12 | var mapsSource string |
| 13 | |
| 14 | //go:embed go1_21_slices.go.txt |
| 15 | var slicesSource string |
| 16 | |
| 17 | /* |
| 18 | //go:embed go1_21_sync.go.txt |
| 19 | var syncSource string |
| 20 | |
| 21 | //go:embed go1_21_sync_atomic.go.txt |
| 22 | var syncAtomicSource string |
| 23 | */ |
| 24 | |
| 25 | // Sources contains the list of generic packages source strings. |
| 26 | var Sources = [...]string{ |
| 27 | cmpSource, |
| 28 | mapsSource, |
| 29 | slicesSource, |
| 30 | // FIXME(marc): support the following. |
| 31 | // syncAtomicSource, |
| 32 | // syncSource, |
| 33 | } |