mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
refactoring: remove un-used code, add go doc, fix ci (#199)
Refactoring, consisting of - remove unused method `isAuxiliaryLanguage` and `FileCountList` in order to reduce public API surfaces (go/java) - add GoDoc to public APIs - ci: java profile use latest go src It also now mimics https://docs.travis-ci.com/user/languages/go/#go-import-path for non-go build image, as code relies on internal imports. TEST PLAN: - make test
This commit is contained in:
@ -93,12 +93,7 @@ func GetLanguagesByVimModeline(filename string, content []byte, candidates []str
|
||||
|
||||
//export GetMimeType
|
||||
func GetMimeType(path string, language string) string {
|
||||
return enry.GetMimeType(path, language)
|
||||
}
|
||||
|
||||
//export IsAuxiliaryLanguage
|
||||
func IsAuxiliaryLanguage(lang string) bool {
|
||||
return enry.IsAuxiliaryLanguage(lang)
|
||||
return enry.GetMIMEType(path, language)
|
||||
}
|
||||
|
||||
//export IsBinary
|
||||
|
Reference in New Issue
Block a user