Source file src/cmd/vet/testdata/sigchanyzer/sigchanyzer.go

     1  // Copyright 2026 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 sigchanyzer
     6  
     7  import (
     8  	"os"
     9  	"os/signal"
    10  )
    11  
    12  func _() {
    13  	c := make(chan os.Signal)
    14  	signal.Notify(c, os.Interrupt) // ERROR "misuse of unbuffered os.Signal channel as argument to signal.Notify"
    15  }
    16  

View as plain text