14 lines
		
	
	
		
			314 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			314 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //golangcitest:args -Eforbidigo
 | |
| //golangcitest:config_path testdata/configs/forbidigo.yml
 | |
| package testdata
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 	"time"
 | |
| )
 | |
| 
 | |
| func Forbidigo() {
 | |
| 	fmt.Printf("too noisy!!!")  // ERROR "use of `fmt\\.Printf` forbidden by pattern `fmt\\\\.Print\\.\\*`"
 | |
| 	time.Sleep(time.Nanosecond) // ERROR "no sleeping!"
 | |
| }
 | 
