mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 16:40:08 -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"
|
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)
|
data, err := ioutil.ReadFile(fileToParse)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
@ -67,10 +67,10 @@ const (
|
|||||||
commitTmplPath = "internal/code-generator/assets/commit.go.tmpl"
|
commitTmplPath = "internal/code-generator/assets/commit.go.tmpl"
|
||||||
commitTmpl = "commit.go.tmpl"
|
commitTmpl = "commit.go.tmpl"
|
||||||
|
|
||||||
// mime.go generation
|
// mimeType.go generation
|
||||||
mimeFile = "data/mime.go"
|
mimeTypeFile = "data/mimeType.go"
|
||||||
mimeTmplPath = "internal/code-generator/assets/mime.go.tmpl"
|
mimeTypeTmplPath = "internal/code-generator/assets/mimeType.go.tmpl"
|
||||||
mimeTmpl = "mime.go.tmpl"
|
mimeTypeTmpl = "mimeType.go.tmpl"
|
||||||
|
|
||||||
commitPath = ".linguist/.git/HEAD"
|
commitPath = ".linguist/.git/HEAD"
|
||||||
)
|
)
|
||||||
@ -102,7 +102,7 @@ func main() {
|
|||||||
&generatorFiles{generator.Aliases, languagesYAML, "", aliasesFile, aliasesTmplPath, aliasesTmpl, commit},
|
&generatorFiles{generator.Aliases, languagesYAML, "", aliasesFile, aliasesTmplPath, aliasesTmpl, commit},
|
||||||
&generatorFiles{generator.Frequencies, "", samplesDir, frequenciesFile, frequenciesTmplPath, frequenciesTmpl, commit},
|
&generatorFiles{generator.Frequencies, "", samplesDir, frequenciesFile, frequenciesTmplPath, frequenciesTmpl, commit},
|
||||||
&generatorFiles{generator.Commit, "", "", commitFile, commitTmplPath, commitTmpl, 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 {
|
for _, file := range fileList {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user