mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 16:40:08 -03:00
Add API usage example
This commit is contained in:
parent
1fee327e08
commit
81c101ce45
@ -28,13 +28,16 @@ fmt.Println(lang)
|
||||
lang, _ = GetLanguageByContent("bar.m", "<pbjective-c-code>")
|
||||
fmt.Println(lang)
|
||||
// result: Objective-C
|
||||
|
||||
// all strategies together
|
||||
lang := enry.GetLanguage("foo.cpp", "<cpp-code>")
|
||||
```
|
||||
|
||||
Developmemt
|
||||
-----------
|
||||
*enry* re-uses parts of original [linguist](https://github.com/github/linguist) especially data in `languages.yml` to generate internal datastructures. In oreder to update to latest upstream run
|
||||
|
||||
make clen code-generate
|
||||
make clean code-generate
|
||||
|
||||
To run the tests
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user