src-d / enry

A faster file programming language detector
https://blog.sourced.tech/post/enry/
Apache License 2.0
460 stars 51 forks source link

How to get a report of a whole directory when using it as Go module #258

Open abdennour opened 2 years ago

abdennour commented 2 years ago

I am using the module as following

import  "github.com/urfave/cli/v2"
//.. 
  enry.GetLanguageByContent(file, b)

But what's the receiver( function) responsible for get the breakdown of the whole directory.

Should i copy/paste your main.go to my application ?!