
Increases the maximum string length from 64 to 1MB when loading strings for a binary operator, also delays the loading until it's necessary. This ensures that comparison between strings will always succeed in reasonable situations. Fixes #1615
22 lines
264 B
Go
22 lines
264 B
Go
package main
|
|
|
|
var strings = []string{
|
|
"one",
|
|
"two",
|
|
"three",
|
|
"four",
|
|
"projects/my-gcp-project-id-string/locations/us-central1/queues/my-task-queue-name",
|
|
"five",
|
|
"six",
|
|
}
|
|
|
|
func f(s string) {
|
|
// ...
|
|
}
|
|
|
|
func main() {
|
|
for _, s := range strings {
|
|
f(s)
|
|
}
|
|
}
|