golang.org/x/tools/gopls@v0.15.3/internal/analysis/simplifyrange/testdata/src/a/a.go (about)

     1  // Copyright 2020 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package testdata
     6  
     7  import "log"
     8  
     9  func m() {
    10  	maps := make(map[string]string)
    11  	for k, _ := range maps { // want "simplify range expression"
    12  		log.Println(k)
    13  	}
    14  	for _ = range maps { // want "simplify range expression"
    15  	}
    16  }