code: func IsBeegoProject(thePath string) bool {
  	mainFiles := []string{}
  	hasBeegoRegex := regexp.MustCompile(`(?s)package main.*?import.*?\(.*?github.com/astaxie/beego".*?\).*func main()`)
  	c := make(chan error)
  	// Walk the application path tree to look for main files.
  	// Main files must satisfy the 'hasBeegoRegex' regular expression.
  	go func() {
  		filepath.Walk(thePath, func(fpath string, f os.FileInfo, err error) error {
  			if err != nil {
  				return nil
  			}
  			// Skip sub-directories
  			if !f.IsDir() {
  				var data []byte
  				data, err = ioutil.ReadFile(fpath)
  				if err != nil {
  					c <- err
  					return nil
  				}
  
  				if len(hasBeegoRegex.Find(data)) > 0 {
  					mainFiles = append(mainFiles, fpath)
  				}
  			}
  			return nil
  		})
  		close(c)
  	}()
  
  	if err := <-c; err != nil {
  		beeLogger.Log.Fatalf("Unable to walk '%s' tree: %s", thePath, err)
  	}
  
  	if len(mainFiles) > 0 {
  		return true
  	}
  	return false
  }
docs: // IsBeegoProject checks whether the current path is a Beego application or not