@@ -65,6 +65,7 @@ type AttributePath struct {
65
65
AttributeName string
66
66
SubAttribute * string
67
67
}
68
+
68
69
func (p AttributePath ) String () string {
69
70
s := p .AttributeName
70
71
if p .URIPrefix != nil {
@@ -75,6 +76,7 @@ func (p AttributePath) String() string {
75
76
}
76
77
return s
77
78
}
79
+
78
80
// SubAttributeName returns the sub attribute name if present.
79
81
// Returns an empty string otherwise.
80
82
func (p * AttributePath ) SubAttributeName () string {
@@ -83,6 +85,7 @@ func (p *AttributePath) SubAttributeName() string {
83
85
}
84
86
return ""
85
87
}
88
+
86
89
// URI returns the URI if present.
87
90
// Returns an empty string otherwise.
88
91
func (p * AttributePath ) URI () string {
@@ -115,7 +118,7 @@ func (e LogicalExpression) String() string {
115
118
return fmt .Sprintf ("%v %s %v" , e .Left , e .Operator , e .Right )
116
119
}
117
120
118
- func (* LogicalExpression ) exprNode () {}
121
+ func (* LogicalExpression ) exprNode () {}
119
122
120
123
// LogicalOperator represents a logical operation such as 'and' / 'or'.
121
124
type LogicalOperator string
@@ -129,7 +132,7 @@ func (e NotExpression) String() string {
129
132
return fmt .Sprintf ("not(%v)" , e .Expression )
130
133
}
131
134
132
- func (* NotExpression ) exprNode () {}
135
+ func (* NotExpression ) exprNode () {}
133
136
134
137
// Path describes the target of a PATCH operation. Path can have an optional
135
138
// ValueExpression and SubAttribute.
@@ -173,4 +176,4 @@ func (e ValuePath) String() string {
173
176
return fmt .Sprintf ("%v[%v]" , e .AttributePath , e .ValueFilter )
174
177
}
175
178
176
- func (* ValuePath ) exprNode () {}
179
+ func (* ValuePath ) exprNode () {}
0 commit comments