Discover Packages 
           
        
          
            golang.org/x/tools 
           
        
          
            go 
           
        
          
            analysis 
           
        
          
            passes 
           
        
        
          
            ctrlflow
           
          
            
               
          
        
       
     
   
  
    
  
    
       
    
    
      package 
    
    
      
        
           
      
    
   
    
      
  
    
      
  
    
      Version:  
        v0.1.6
     
    
      Opens a new window with list of versions in this module.
    
    
    
   
      
  
    Published: Sep 17, 2021
   
      
  
    License: BSD-3-Clause 
      
    
   
  
    Opens a new window with license information.
  
      
        
  
    
      Imports:  9
     
   
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by:  189
     
   
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
 
    
      
    
    
  
  
    
      
        
          Documentation 
        
       
     
  
 
    
  
    
      
      
        
          
  
    
      ¶ 
     
    
  
    
  
    
      
        
 
    
Package ctrlflow is an analysis that provides a syntactic
control-flow graph (CFG) for the body of a function.
It records whether a function cannot return.
By itself, it does not report any diagnostics.
 
  
  
  
  
  
  
  
      
  
  
    
    
    
  A CFGs holds the control-flow graphs
for all the functions of the current package.
    
  
  
    
    
    
  FuncDecl returns the control-flow graph for a named function.
It returns nil if decl.Body==nil.
  
   
    
  
  
    
    
    
  FuncLit returns the control-flow graph for a literal function.
  
   
  
       
      
     
   
        
      
      
        
  
    
      ¶ 
     
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.