-
Notifications
You must be signed in to change notification settings - Fork 7
/
constants.go
29 lines (25 loc) · 952 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
// Copyright (C) 2017-present Sven Greb <development@svengreb.de>
//
// Project: snowsaw
// Repository: https://github.com/arcticicestudio/snowsaw
// License: MIT
// Author: Arctic Ice Studio <development@arcticicestudio.com>
// Author: Sven Greb <development@svengreb.de>
// Since: 0.4.0
package encoder
import (
"github.com/arcticicestudio/snowsaw/pkg/config/encoder/json"
"github.com/arcticicestudio/snowsaw/pkg/config/encoder/yaml"
)
var (
// ExtensionMapping maps supported file extensions to their compatible encoders.
ExtensionMapping = map[string]Encoder{
ExtensionsJson: json.NewJsonEncoder(),
ExtensionsYaml: yaml.NewYamlEncoder(),
}
// ExtensionsJson is the supported extension for files containing JSON data.
ExtensionsJson = "json"
// ExtensionsYaml is the supported extension for files containing YAML data.
ExtensionsYaml = "yml"
)