Skip to content

Commit b8fc0c0

Browse files
committed
Forgot to add redirects for v3 constants
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
1 parent 8eaa802 commit b8fc0c0

File tree

1 file changed

+53
-3
lines changed

1 file changed

+53
-3
lines changed

goyaml.v3/yaml_aliases.go

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,70 @@ type (
4646
// TypeError is returned by Unmarshal when one or more fields in the YAML document cannot be properly decoded.
4747
// Deprecated: Use go.yaml.in/yaml/v3.TypeError directly.
4848
TypeError = gopkg_yaml.TypeError
49-
49+
5050
// Node represents a YAML node in the document.
5151
// Deprecated: Use go.yaml.in/yaml/v3.Node directly.
5252
Node = gopkg_yaml.Node
53-
53+
5454
// Kind represents the kind of a YAML node.
5555
// Deprecated: Use go.yaml.in/yaml/v3.Kind directly.
5656
Kind = gopkg_yaml.Kind
57-
57+
5858
// Style represents the style of a YAML node.
5959
// Deprecated: Use go.yaml.in/yaml/v3.Style directly.
6060
Style = gopkg_yaml.Style
6161
)
6262

63+
// Constants for Kind type from go.yaml.in/yaml/v3
64+
const (
65+
// DocumentNode represents a YAML document node.
66+
// Deprecated: Use go.yaml.in/yaml/v3.DocumentNode directly.
67+
DocumentNode = gopkg_yaml.DocumentNode
68+
69+
// SequenceNode represents a YAML sequence node.
70+
// Deprecated: Use go.yaml.in/yaml/v3.SequenceNode directly.
71+
SequenceNode = gopkg_yaml.SequenceNode
72+
73+
// MappingNode represents a YAML mapping node.
74+
// Deprecated: Use go.yaml.in/yaml/v3.MappingNode directly.
75+
MappingNode = gopkg_yaml.MappingNode
76+
77+
// ScalarNode represents a YAML scalar node.
78+
// Deprecated: Use go.yaml.in/yaml/v3.ScalarNode directly.
79+
ScalarNode = gopkg_yaml.ScalarNode
80+
81+
// AliasNode represents a YAML alias node.
82+
// Deprecated: Use go.yaml.in/yaml/v3.AliasNode directly.
83+
AliasNode = gopkg_yaml.AliasNode
84+
)
85+
86+
// Constants for Style type from go.yaml.in/yaml/v3
87+
const (
88+
// TaggedStyle represents a tagged YAML style.
89+
// Deprecated: Use go.yaml.in/yaml/v3.TaggedStyle directly.
90+
TaggedStyle = gopkg_yaml.TaggedStyle
91+
92+
// DoubleQuotedStyle represents a double-quoted YAML style.
93+
// Deprecated: Use go.yaml.in/yaml/v3.DoubleQuotedStyle directly.
94+
DoubleQuotedStyle = gopkg_yaml.DoubleQuotedStyle
95+
96+
// SingleQuotedStyle represents a single-quoted YAML style.
97+
// Deprecated: Use go.yaml.in/yaml/v3.SingleQuotedStyle directly.
98+
SingleQuotedStyle = gopkg_yaml.SingleQuotedStyle
99+
100+
// LiteralStyle represents a literal YAML style.
101+
// Deprecated: Use go.yaml.in/yaml/v3.LiteralStyle directly.
102+
LiteralStyle = gopkg_yaml.LiteralStyle
103+
104+
// FoldedStyle represents a folded YAML style.
105+
// Deprecated: Use go.yaml.in/yaml/v3.FoldedStyle directly.
106+
FoldedStyle = gopkg_yaml.FoldedStyle
107+
108+
// FlowStyle represents a flow YAML style.
109+
// Deprecated: Use go.yaml.in/yaml/v3.FlowStyle directly.
110+
FlowStyle = gopkg_yaml.FlowStyle
111+
)
112+
63113
// Function aliases for public functions from go.yaml.in/yaml/v3
64114
var (
65115
// Unmarshal decodes the first document found within the in byte slice and assigns decoded values into the out value.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy