mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 00:20:09 -03:00
Renamed mime to mimeType
This commit is contained in:
parent
632422db69
commit
ea819f58c2
@ -9,7 +9,7 @@ import (
|
||||
yaml "gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
func Mime(fileToParse, samplesDir, outPath, tmplPath, tmplName, commit string) error {
|
||||
func MimeType(fileToParse, samplesDir, outPath, tmplPath, tmplName, commit string) error {
|
||||
data, err := ioutil.ReadFile(fileToParse)
|
||||
if err != nil {
|
||||
return err
|
@ -67,10 +67,10 @@ const (
|
||||
commitTmplPath = "internal/code-generator/assets/commit.go.tmpl"
|
||||
commitTmpl = "commit.go.tmpl"
|
||||
|
||||
// mime.go generation
|
||||
mimeFile = "data/mime.go"
|
||||
mimeTmplPath = "internal/code-generator/assets/mime.go.tmpl"
|
||||
mimeTmpl = "mime.go.tmpl"
|
||||
// mimeType.go generation
|
||||
mimeTypeFile = "data/mimeType.go"
|
||||
mimeTypeTmplPath = "internal/code-generator/assets/mimeType.go.tmpl"
|
||||
mimeTypeTmpl = "mimeType.go.tmpl"
|
||||
|
||||
commitPath = ".linguist/.git/HEAD"
|
||||
)
|
||||
@ -102,7 +102,7 @@ func main() {
|
||||
&generatorFiles{generator.Aliases, languagesYAML, "", aliasesFile, aliasesTmplPath, aliasesTmpl, commit},
|
||||
&generatorFiles{generator.Frequencies, "", samplesDir, frequenciesFile, frequenciesTmplPath, frequenciesTmpl, commit},
|
||||
&generatorFiles{generator.Commit, "", "", commitFile, commitTmplPath, commitTmpl, commit},
|
||||
&generatorFiles{generator.Mime, languagesYAML, "", mimeFile, mimeTmplPath, mimeTmpl, commit},
|
||||
&generatorFiles{generator.MimeType, languagesYAML, "", mimeTypeFile, mimeTypeTmplPath, mimeTypeTmpl, commit},
|
||||
}
|
||||
|
||||
for _, file := range fileList {
|
||||
|
Loading…
x
Reference in New Issue
Block a user