mirror of
				https://github.com/go-delve/delve.git
				synced 2025-11-01 03:42:59 +08:00 
			
		
		
		
	 158fb7bfac
			
		
	
	158fb7bfac
	
	
	
		
			
			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)
 | |
| 	}
 | |
| }
 |