github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/missingfunction/operation.go.golden (about)

     1  -- suggestedfix_operation_10_2 --
     2  // Copyright 2021 The Go Authors. All rights reserved.
     3  // Use of this source code is governed by a BSD-style
     4  // license that can be found in the LICENSE file.
     5  
     6  package missingfunction
     7  
     8  import "time"
     9  
    10  func operation() {
    11  	undefinedOperation(10 * time.Second) //@suggestedfix("undefinedOperation", "quickfix")
    12  }
    13  
    14  func undefinedOperation(duration time.Duration) {
    15  	panic("implement me!")
    16  }
    17  -- suggestedfix_operation_6_2 --
    18  package missingfunction
    19  
    20  import "time"
    21  
    22  func operation() {
    23  	undefinedOperation(10 * time.Second) //@suggestedfix("undefinedOperation", "quickfix")
    24  }
    25  
    26  func undefinedOperation(duration time.Duration) {
    27  	panic("unimplemented")
    28  }
    29