diff options
author | Jake Champlin <jake.champlin.27@gmail.com> | 2017-06-06 12:40:07 -0400 |
---|---|---|
committer | Jake Champlin <jake.champlin.27@gmail.com> | 2017-06-06 12:40:07 -0400 |
commit | bae9f6d2fd5eb5bc80929bd393932b23f14d7c93 (patch) | |
tree | ca9ab12a7d78b1fc27a8f734729081357ce6d252 /vendor/github.com/hashicorp/hil/ast/type_string.go | |
parent | 254c495b6bebab3fb72a243c4bce858d79e6ee99 (diff) | |
download | terraform-provider-statuscake-bae9f6d2fd5eb5bc80929bd393932b23f14d7c93.tar.gz terraform-provider-statuscake-bae9f6d2fd5eb5bc80929bd393932b23f14d7c93.tar.zst terraform-provider-statuscake-bae9f6d2fd5eb5bc80929bd393932b23f14d7c93.zip |
Initial transfer of provider code
Diffstat (limited to 'vendor/github.com/hashicorp/hil/ast/type_string.go')
-rw-r--r-- | vendor/github.com/hashicorp/hil/ast/type_string.go | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/hil/ast/type_string.go b/vendor/github.com/hashicorp/hil/ast/type_string.go new file mode 100644 index 0000000..1f51a98 --- /dev/null +++ b/vendor/github.com/hashicorp/hil/ast/type_string.go | |||
@@ -0,0 +1,54 @@ | |||
1 | // Code generated by "stringer -type=Type"; DO NOT EDIT | ||
2 | |||
3 | package ast | ||
4 | |||
5 | import "fmt" | ||
6 | |||
7 | const ( | ||
8 | _Type_name_0 = "TypeInvalid" | ||
9 | _Type_name_1 = "TypeAny" | ||
10 | _Type_name_2 = "TypeBool" | ||
11 | _Type_name_3 = "TypeString" | ||
12 | _Type_name_4 = "TypeInt" | ||
13 | _Type_name_5 = "TypeFloat" | ||
14 | _Type_name_6 = "TypeList" | ||
15 | _Type_name_7 = "TypeMap" | ||
16 | _Type_name_8 = "TypeUnknown" | ||
17 | ) | ||
18 | |||
19 | var ( | ||
20 | _Type_index_0 = [...]uint8{0, 11} | ||
21 | _Type_index_1 = [...]uint8{0, 7} | ||
22 | _Type_index_2 = [...]uint8{0, 8} | ||
23 | _Type_index_3 = [...]uint8{0, 10} | ||
24 | _Type_index_4 = [...]uint8{0, 7} | ||
25 | _Type_index_5 = [...]uint8{0, 9} | ||
26 | _Type_index_6 = [...]uint8{0, 8} | ||
27 | _Type_index_7 = [...]uint8{0, 7} | ||
28 | _Type_index_8 = [...]uint8{0, 11} | ||
29 | ) | ||
30 | |||
31 | func (i Type) String() string { | ||
32 | switch { | ||
33 | case i == 0: | ||
34 | return _Type_name_0 | ||
35 | case i == 2: | ||
36 | return _Type_name_1 | ||
37 | case i == 4: | ||
38 | return _Type_name_2 | ||
39 | case i == 8: | ||
40 | return _Type_name_3 | ||
41 | case i == 16: | ||
42 | return _Type_name_4 | ||
43 | case i == 32: | ||
44 | return _Type_name_5 | ||
45 | case i == 64: | ||
46 | return _Type_name_6 | ||
47 | case i == 128: | ||
48 | return _Type_name_7 | ||
49 | case i == 256: | ||
50 | return _Type_name_8 | ||
51 | default: | ||
52 | return fmt.Sprintf("Type(%d)", i) | ||
53 | } | ||
54 | } | ||