summaryrefslogtreecommitdiff
path: root/data/datafuncs.go
blob: ccd767e1735783ff58dd19dbbb48e5cbd5984769 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package data

import (
	"github.com/hairyhenderson/gomplate/v4/internal/parsers"
)

// temporary aliases for parser functions while I figure out if they need to be
// exported from the internal parsers package

// JSON - Unmarshal a JSON Object. Can be ejson-encrypted.
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var JSON = parsers.JSON

// JSONArray - Unmarshal a JSON Array
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var JSONArray = parsers.JSONArray

// YAML - Unmarshal a YAML Object
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var YAML = parsers.YAML

// YAMLArray - Unmarshal a YAML Array
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var YAMLArray = parsers.YAMLArray

// TOML - Unmarshal a TOML Object
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var TOML = parsers.TOML

// CSV - Unmarshal CSV
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var CSV = parsers.CSV

// CSVByRow - Unmarshal CSV in a row-oriented form
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var CSVByRow = parsers.CSVByRow

// CSVByColumn - Unmarshal CSV in a Columnar form
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var CSVByColumn = parsers.CSVByColumn

// ToCSV -
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var ToCSV = parsers.ToCSV

// ToJSON - Stringify a struct as JSON
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var ToJSON = parsers.ToJSON

// ToJSONPretty - Stringify a struct as JSON (indented)
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var ToJSONPretty = parsers.ToJSONPretty

// ToYAML - Stringify a struct as YAML
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var ToYAML = parsers.ToYAML

// ToTOML - Stringify a struct as TOML
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var ToTOML = parsers.ToTOML

// CUE - Unmarshal a CUE expression into the appropriate type
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var CUE = parsers.CUE

// ToCUE - Stringify a struct as CUE
//
// Deprecated: will be removed in a future version of gomplate. If you have a
// need for this, please open an issue!
var ToCUE = parsers.ToCUE