From b277944b2a658b8368a51d18b54d3d883d28c2e8 Mon Sep 17 00:00:00 2001 From: Manuel Carmona Date: Mon, 17 Apr 2017 12:00:50 +0200 Subject: [PATCH] fixed constant iotas --- internal/code-generator/assets/type.go.tmpl | 8 ++++---- .../generator/test_files/formated_type.gold | 8 ++++---- internal/code-generator/generator/test_files/type.gold | 8 ++++---- .../generator/test_files/type.test.go.tmpl | 8 ++++---- type.go | 10 +++++----- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/internal/code-generator/assets/type.go.tmpl b/internal/code-generator/assets/type.go.tmpl index aaa5282..bf063a2 100644 --- a/internal/code-generator/assets/type.go.tmpl +++ b/internal/code-generator/assets/type.go.tmpl @@ -6,10 +6,10 @@ package slinguist const ( TypeUnknown = iota - TypeData = iota - TypeProgramming = iota - TypeMarkup = iota - TypeProse = iota + TypeData + TypeProgramming + TypeMarkup + TypeProse ) func GetLanguageType(language string) (langType int) { diff --git a/internal/code-generator/generator/test_files/formated_type.gold b/internal/code-generator/generator/test_files/formated_type.gold index 6d0de86..8ce97d1 100644 --- a/internal/code-generator/generator/test_files/formated_type.gold +++ b/internal/code-generator/generator/test_files/formated_type.gold @@ -6,10 +6,10 @@ package slinguist const ( TypeUnknown = iota - TypeData = iota - TypeProgramming = iota - TypeMarkup = iota - TypeProse = iota + TypeData + TypeProgramming + TypeMarkup + TypeProse ) func GetLanguageType(language string) (langType int) { diff --git a/internal/code-generator/generator/test_files/type.gold b/internal/code-generator/generator/test_files/type.gold index 1ed18ba..a128e6c 100644 --- a/internal/code-generator/generator/test_files/type.gold +++ b/internal/code-generator/generator/test_files/type.gold @@ -6,10 +6,10 @@ package slinguist const ( TypeUnknown = iota - TypeData = iota - TypeProgramming = iota - TypeMarkup = iota - TypeProse = iota + TypeData + TypeProgramming + TypeMarkup + TypeProse ) func GetLanguageType(language string) (langType int) { diff --git a/internal/code-generator/generator/test_files/type.test.go.tmpl b/internal/code-generator/generator/test_files/type.test.go.tmpl index aaa5282..bf063a2 100644 --- a/internal/code-generator/generator/test_files/type.test.go.tmpl +++ b/internal/code-generator/generator/test_files/type.test.go.tmpl @@ -6,10 +6,10 @@ package slinguist const ( TypeUnknown = iota - TypeData = iota - TypeProgramming = iota - TypeMarkup = iota - TypeProse = iota + TypeData + TypeProgramming + TypeMarkup + TypeProse ) func GetLanguageType(language string) (langType int) { diff --git a/type.go b/type.go index 1e4fa58..32058e4 100644 --- a/type.go +++ b/type.go @@ -5,11 +5,11 @@ package slinguist // Extracted from github/linguist commit: dae33dc2b20cddc85d1300435c3be7118a7115a9 const ( - TypeUnknown = iota - TypeData = iota - TypeProgramming = iota - TypeMarkup = iota - TypeProse = iota + TypeUnknown = iota + TypeData + TypeProgramming + TypeMarkup + TypeProse ) func GetLanguageType(language string) (langType int) {